Blog

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

Laravel Company

How to make a REST API first web application in Laravel

# How to Build a True API-First Web Application in Laravel: A Server-Side Rendering Approach As a senior developer, I often encounter the desire to build...

2026-06-29 Stefan Bogdanescu
Laravel Company

Fatal error: Uncaught Error: Call to a member function format() on null

# Solving Fatal Errors: Avoiding `Call to a member function format() on null` in PHP Date Handling As senior developers, we often deal with data that isn't...

2026-06-29 Stefan Bogdanescu
Laravel Company

Docker & PHP 8 FPM & Laravel Setup

# Mastering the Build: Fixing PHP Extension Compilation Errors in Docker Setting up a robust development environment using Docker and PHP is the gold standard...

2026-06-29 Stefan Bogdanescu
Laravel Company

how to get trashed with eloquent model using where and with

# How to Get Trashed Results with Eloquent: Mastering `where`, `with`, and `withTrashed()` As developers working with relational databases, managing data...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel: Route [login] not defined

# Decoding the Laravel Routing Mystery: Why "Route [login] not defined" Appears As a senior developer working with the Laravel framework, I frequently...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel: ERR_TOO_MANY_REDIRECTS

# Debugging Redirect Loops in Laravel: Solving `ERR_TOO_MANY_REDIRECTS` During Authentication As a senior developer working with the Laravel framework, I...

2026-06-29 Stefan Bogdanescu
Laravel Company

Change date format in blade template

Title: Efficiently Change Date Formats in Blade Templates using Laravel Introduction In web development, displaying dates in desired formats is an essential...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to use intended function in Laravel

# Mastering Redirection in Laravel: How to Use `intended()` Correctly for Dynamic Flows As senior developers working within the Laravel ecosystem, we...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel unit tests - changing a config value depending on test method

# Laravel Unit Tests: Managing Configuration State for Dynamic Scenarios Testing conditional logic based on application configuration is a common requirement...

2026-06-29 Stefan Bogdanescu
Laravel Company

Remove laravel/ui and php artisan ui vue --auth in Laravel 7

# Deconstructing and Removing Laravel UI Scaffolding in Laravel 7 When you rapidly prototype or bootstrap a new Laravel application, tools like `laravel/ui`...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Production issue - Updating composer with Laravel 4.1.x

# Resolving PHP Extension Errors: A Developer's Guide to Dependency Hell Dealing with dependency errors during installation—especially those involving...

2026-06-29 Stefan Bogdanescu
Laravel Company

how to get the first element of a list in laravel?

# How to Get the First Element of a List in Laravel: A Modern Approach As developers evolve, so do the ways we interact with data structures. When working with...

2026-06-29 Stefan Bogdanescu