Questions

9,124 Laravel questions with worked answers.

AuthenticationBlade

Laravel, Auth::user() in controller

Title: Understanding Laravel Auth::user() in Controllers

1 July 2026 · Stefan Bogdanescu
DatabaseEloquent

Generate The Raw MySQL Query From Laravel Query Builder

Title: Generate The Raw MySQL Query From Laravel Query Builder

1 July 2026 · Stefan Bogdanescu
RoutingValidation

delete confirmation in laravel

Title: Adding Confirmation on Delete Actions in Laravel

1 July 2026 · Stefan Bogdanescu
EloquentAPI

Laravel get model attribute: difference between two methods

Title: Laravel get model attribute: Difference between two methods

1 July 2026 · Stefan Bogdanescu
ValidationErrors

Laravel 5.3 Validation Fails when Variables are Null

Title: Understanding Laravel 5.3 Validation Behavior with Null Values and Missing Parameters

1 July 2026 · Stefan Bogdanescu
ErrorsPerformance

How to avoid Maximum execution time of 60 seconds exceeded Laravel without change php.ini max_execution_time

You need to optimize your Laravel application's code for exporting large datasets, such as exporting over 100,000 data records. You've noticed that changing...

1 July 2026 · Stefan Bogdanescu
AuthenticationRouting

How to remove Auth in Laravel (PHP artisan)

Title: Effortlessly Removing or Reinitializing Auth in Laravel (PHP artisan)

1 July 2026 · Stefan Bogdanescu
ArtisanConfiguration

How to get the application name in laravel?

Title: Accessing the Laravel Application Name Programmatically

1 July 2026 · Stefan Bogdanescu
ComposerErrors

laravel composer update : the requested PHP extension dom is missing from your system

Title: Troubleshooting "the requested PHP extension dom is missing from your system" during Laravel Composer update

1 July 2026 · Stefan Bogdanescu
DatabaseAPI

Laravel 5.2 - pluck() method returns array

Title: Clarifying Laravel 5.2's pluck() Method Behavior Body: In the context of upgrading your project from Laravel 5.1 to 5.2, you might face some...

1 July 2026 · Stefan Bogdanescu
AuthenticationConfiguration

spatie/laravel-permission There is no permission named `edit_project` for guard `api`

Title: Resolving Issues With spatie/laravel-permission and guard 'api'

1 July 2026 · Stefan Bogdanescu
ConfigurationEloquent

Carbon::now() is not using UTC

Title: Understanding Timezones and Carbon::now() in Your Laravel Applications

1 July 2026 · Stefan Bogdanescu
ErrorsDatabase

Carbon.php The separation symbol could not be found Data missing

Title: Troubleshooting Carbon.php Date Manipulation Errors in Laravel Projects

1 July 2026 · Stefan Bogdanescu
RoutingConfiguration

Ajax call Laravel Route

Title: Properly Calling Laravel Routes or Controllers Using Ajax

1 July 2026 · Stefan Bogdanescu
PerformanceRouting

laravel filament very slow

Title: Optimizing Laravel Filament Performance: Addressing Common Bottlenecks

1 July 2026 · Stefan Bogdanescu
FilesBlade

Laravel DomPdf Add Custom Font

Title: Effortlessly Adding Custom Fonts to Laravel DomPDF Generations

1 July 2026 · Stefan Bogdanescu
DatabaseEloquent

How can I build a condition based query in Laravel?

Title: Efficiently Building Conditional Queries in Laravel - A Practical Guide

1 July 2026 · Stefan Bogdanescu
EloquentDatabase

Laravel hasMany with where in a Polymorphic relationship

Title: Laravel Polymorphic Relationships with hasMany and Custom Conditions

1 July 2026 · Stefan Bogdanescu
DeploymentErrors

Laravel routes not found after nginx install

Title: Laravel Routes Not Found after Nginx Install: A Comprehensive Guide

1 July 2026 · Stefan Bogdanescu
ComposerErrors

Fresh Laravel 11 Filament install requirements could not be resolved to an installable set of packages

Fresh Laravel 11 Filament Install Requirements Could Not Be Resolved to an Installable Set of Packages

1 July 2026 · Stefan Bogdanescu
EloquentDatabase

How to insert multiple rows from a single query using eloquent/fluent

Title: Efficiently Insert Multiple Rows from Single Query Using Eloquent/Fluent in Laravel

1 July 2026 · Stefan Bogdanescu
ArtisanErrors

laravel is not recognized as an internal or external command

Title: Resolving 'Laravel is Not Recognized as an Internal or External Command' Issues

1 July 2026 · Stefan Bogdanescu
ErrorsDatabase

strpos(): Argument #1 ($haystack) must be of type string, array given

Title: Understanding and Resolving "strpos(): Argument #1 ($haystack) must be of type string, array given" Error in Laravel Development - A Comprehensive...

1 July 2026 · Stefan Bogdanescu
Routing

Laravel delete button with HTML form

Title: Adding Delete Button with HTML Form Confirmation for Users in Laravel

1 July 2026 · Stefan Bogdanescu

Our network