Blog
Insights, guides, and best practices from the Laravel Company team.
Laravel & Livewire: How to execute a javascript function when the component changes?
Title: Effectively Executing Javascript Functions During Component Changes in Laravel & Livewire Applications Introduction: In modern web development,...
Laravel DB::update only return 0 or 1
Title: Understanding Laravel DB::update Return Values: Zero or One may Indicate Either Failure or Equal Updates Body: Laravel's DB update function is an...
Laravel redirect to route from controller when called by AJAX
Title: Efficiently Redirecting from Laravel Controller to Route Using AJAX Body: When working on web applications built using the Laravel framework, it's...
Laravel Migrate Specific File(s) from Migrations
Title: Laravel Migrate Specific File(s) from Migrations - A Comprehensive Guide Managing databases using modern PHP frameworks like Laravel has made the...
Laravel - Route::resource vs Route::controller
Title: Understanding Laravel Route Components: Route::resource vs Route::controller Laravel is an excellent PHP framework with numerous features that...
Laravel Bulk Update for multiple record ids
Title: Efficiently Performing Bulk Updates on Multiple Records Using Laravel Introduction: In the world of web development, data management is crucial, and...
Laravel - link to a file saved in storage folder
Title: Creating Links to Files Stored in Laravel's Storage Folder Body: When working with Laravel, there are several ways to store files and make them...
Display hidden not working with flex in Tailwind
Title: Display Hidden Not Working with Flex in Tailwind - Exploring the Problem and Solutions Introduction As more developers adopt Tailwind CSS for their...
Laravel $request->expectsJson()
Title: Understanding and Customizing Laravel's $request->expectsJson() Behavior Body: You are doing an Ajax login for your Laravel application with Angular,...
How can use Spatie add assign role to all users using seeder in laravel?
Title: Efficiently Assign Roles to Users with Spatie Addon using Seeder in Laravel Apps Body: When working on an application that utilizes user roles, you...
How to get last inserted id in Laravel?
Title: Easily Retrieving the Last Inserted ID in Laravel Applications Introduction: In any data-driven application, managing database records is essential to...
How to display PDF Documents on the browser using a View in Laravel 5.8
Title: Effortlessly Displaying PDF Documents on the Browser using Laravel Views for Your Web App Introduction: Displaying PDF documents is an essential feature...