Blog

Insights, guides, and best practices from the Laravel Company team.

Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu
Laravel Company

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...

2026-06-29 Stefan Bogdanescu