Blog
Insights, guides, and best practices from the Laravel Company team.
How to compare two collection arrays?
Title: Efficiently Comparing Two Collection Arrays in Laravel (with PHP Backup) Introduction In today's fast-paced world of web development, you may find...
Laravel using where clause on a withCount method
Laravel's withCount() method helps in retrieving related models along with their counts by eagerly loading them without requiring extra queries. However, you...
laravel model callbacks after save, before save, etc
Title: Efficiently Using Model Callbacks in Laravel for Save Operations Introduction: In the world of web application development, the MVC (Model View...
Prevent Browser's Back Button Login After Logout in Laravel 5
Title: Prevent Browser's Back Button Login After Logout in Laravel 5 - A Comprehensive Approach for a More Secure Application Body: Understanding and resolving...
Laravel Routes not working, Apache configuration only allows for public/index.php/route
Title: Debugging Laravel Routes: Solving Issues Where Apache Allows Only Public/index.php/route Access Introduction: Encountering issues while accessing your...
Including PHP files with Laravel framework
Title: Including PHP Files with Laravel Framework: A Comprehensive Guide Body: In this blog post, we will discuss how to include PHP files within the Laravel...
Laravel - Login with username, email or phone
Title: Extending Laravel Login with Multiple Authentication Methods Body: As a developer, you might have encountered different login scenarios where your users...
In Laravel, send a post request with json object data
Title: Sending JSON Data with Post Requests Using Laravel's Http Facade Introduction: In today's world of web development, APIs are an integral part of...
Laravel table relationship to pivot table
Title: Clarifying Laravel Table Relationships with Pivot Tables Introduction Laravel provides a powerful Eloquent ORM to handle database interactions...
Including a css file in a blade template?
Title: Including a CSS File in a Blade Template - The Correct Way to Approach It Including CSS files in your Laravel blade template comes down to understanding...
How to get sum of two different columns with Laravel Query Builder?
Title: Mastering Summation with Laravel Query Builder for Multiple Columns Body: If you're working on a Laravel application where you need to calculate the sum...
Laravel - Artisan not working
Title: Troubleshooting Laravel Artisan Commands that Stop Working After Git Pull Body: Artisan is the powerful command line interface (CLI) built into Laravel...