Blog
Insights, guides, and best practices from the Laravel Company team.
Laravel sanctum change csrf cookie route
# Mastering Sanctum CSRF Cookies: Changing the `/sanctum/csrf-cookie` Route As a senior developer working with Laravel, customizing core framework features...
Error trying to publish config file of laravel-livewire?
# Solving the Mystery: Error Trying to Publish Livewire Config File As a senior developer, I frequently encounter situations where documentation points to one...
Laravel Passport: How do i get Access token from Bearer Token
# Laravel Passport: How to Get the `oauth_access_tokens` ID from a Bearer Token When implementing OAuth 2.0 with Laravel Passport, securing endpoints using...
Call to a member function addEagerConstraints() on string
# Call to a Member Function on Polymorphic Relations: Mastering Averages in Eloquent As senior developers working with Laravel and Eloquent, we frequently...
Illuminate\Contracts\Container\BindingResolutionException - Target class [CommandMakeCommand] does not exist
Title: Illuminate\Contracts\Container\BindingResolutionException - Target class [CommandMakeCommand] does not exist Body: Using Laravel 8.75 and trying to...
Configure Memcached in Laravel
# Configure Memcached in Laravel: A Deep Dive for Performance As senior developers, we understand that application performance hinges on efficient data...
How to change all cell's height and width in laravel excel
# Mastering Bulk Formatting in Laravel Excel: How to Set All Row Heights and Widths Efficiently As a senior developer working with data export solutions, we...
How to insert data into table during migration in Laravel 8?
# How to Insert Bulk Data into Tables During a Laravel Migration: The Efficient Way As developers working with relational databases in Laravel, one common...
New to Laravel PHP framework. Routes other than "/" doesn't work
# Solving the Laravel Routing Mystery: Why Other Routes Fail After Setup Welcome to the world of Laravel! As a developer transitioning from frameworks like...
Method Illuminate\Database\Eloquent\Collection::update does not exist
# Solving the Eloquent Update Mystery: Why `update()` Fails on Your Models As a senior developer, I’ve seen countless developers stumble over seemingly simple...
Laravel routing: how to pass parameter to controller (not via URL)?
# Laravel Routing: How to Pass Parameters to the Controller (Not via URL) As developers working with Laravel, we constantly deal with the challenge of mapping...
How to pass arguments to a mocked class constructor
# How to Pass Arguments to a Mocked Class Constructor: Mastering Dependency Setup As developers, mocking is an essential tool for isolating units of code and...