Blog
Insights, guides, and best practices from the Laravel Company team.
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...
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...
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...
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...
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...
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...
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...
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...
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...
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`...
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...
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...