Blog

Insights, guides, and best practices from the Laravel Company team.

Laravel Company

findOrCreate in laravel

# Mastering Data Synchronization: The Correct Way to Implement `findOrCreate` in Laravel As developers working with Eloquent and relational databases, one of...

2026-06-29 Stefan Bogdanescu
Laravel Company

how to echo strings and variable in laravel 5.1 blade

# Mastering Dynamic URLs in Laravel Blade: How to Echo Strings and Variables Correctly As developers working with Laravel, one of the most frequent tasks we...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel - change the default database connection globally

# Laravel: Mastering Dynamic Database Connection Switching Globally As a senior developer working with Laravel, managing multiple database connections is a...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 5.4 sorting

# Mastering Multi-Level Sorting in Laravel: Solving Complex Data Ordering As developers working with relational data, sorting results is a fundamental task....

2026-06-29 Stefan Bogdanescu
Laravel Company

Get number of rows in Laravel's Eloquent before using "take" and "skip"

# Getting the Total Row Count in Laravel Eloquent Before Using `take()` and `skip()` As developers working with large datasets, pagination is an essential...

2026-06-29 Stefan Bogdanescu
Laravel Company

CSS files are not loading in Laravel view

# Decoding the Mystery: Why CSS Files Fail to Load in Your Laravel Views As a senior developer working within the Laravel ecosystem, we often encounter...

2026-06-29 Stefan Bogdanescu
Laravel Company

Syntax error or access violation: 1072 Key column 'kategori_id' doesn't exist in table

# Syntax Error or Access Violation: Mastering Foreign Keys in Laravel Migrations As a senior developer working with the Laravel ecosystem, we often dive deep...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to decode jwt in php/laravel without the secret key or without validation?

# Decoding External JWTs in PHP/Laravel: The Security Dilemma Without a Secret Key As senior developers, we often encounter situations where we need to...

2026-06-29 Stefan Bogdanescu
Laravel Company

Call to a member function isEmpty() on a non-object?

# Call to a member function isEmpty() on a non-object: Debugging Data Flow in Laravel Views As senior developers working with the Laravel ecosystem, we...

2026-06-29 Stefan Bogdanescu
Laravel Company

Getting "Class 'app\Http\Controllers\Controller' not found" in Laravel 5.1

# Getting "Class 'app\Http\Controllers\Controller' not found" in Laravel 5.1: A Deep Dive Fix As developers, we all encounter frustrating errors when diving...

2026-06-29 Stefan Bogdanescu
Laravel Company

Download a file in Laravel using a URL to external resource

Title: Downloading Files from External Resources Using Laravel or Plain PHP Introduction: In this blog post, we will explore the process of downloading...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Blade - pass variable via an @include or @yield

# Laravel Blade: Mastering Variable Passing with `@include` and `@yield` As senior developers working with the Laravel ecosystem, we frequently encounter...

2026-06-29 Stefan Bogdanescu