Blog

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

Laravel Company

What is the difference between find(), findOrFail(), first(), firstOrFail(), get(), list(), toArray()

Title: Diving Deep into Eloquent Methods - Find(), FindOrFail(), First(), FirstOrFail(), Get(), List() and toArray(): A Comprehensive Guide for Developers...

2026-06-29 Stefan Bogdanescu
Laravel Company

laravel how to validate as equal to a variable

Title: Comparing Form Field Values with PHP Variables in Laravel Validation Introduction: In Laravel, validation is an essential component of any web...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel blade creating url

Title: Efficiently Create URLs in Laravel Blade with Dynamic Website Names Introduction: In today's world of web development, creating dynamic URLs based on...

2026-06-29 Stefan Bogdanescu
Laravel Company

Can't connect to database Laravel Sail

Title: Resolving Connection Issues with Laravel Sail and Database Management Tools Introduction: Laravel is an increasingly popular PHP framework, and Sail...

2026-06-29 Stefan Bogdanescu
Laravel Company

What's the cleanest way to remove Homestead and Vagrant from a Windows system?

Title: Cleanly Removing Homestead and Vagrant from Your Windows System Introduction Vagrant and Homestead are powerful tools that help developers set up...

2026-06-29 Stefan Bogdanescu
Laravel Company

What's the best way to localise a date on Laravel?

Title: Efficient Date Localization on Laravel - Best Practices for Multilingual Applications Introduction: In today's globalized world, it is essential to...

2026-06-29 Stefan Bogdanescu
Laravel Company

Redis keys are not expiring - Laravel, Predis

Title: Troubleshooting Redis Key Expiration Issues with Laravel and Predis Body: When working with Laravel, Predis, and the latest version of Redis (or Redis...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel passed argument

Title: Troubleshooting Laravel Passed Arguments - A Comprehensive Guide for Developers Body: Imagine you've created a Laravel app with an intention to scrape...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to pass arguments to Laravel factories?

Title: Efficiently Pass Arguments to Laravel Factories for Complex Relationship Management Body: Laravel factories are powerful tools that help automate the...

2026-06-29 Stefan Bogdanescu
Laravel Company

Validating boolean with Laravel Validation

Title: Efficiently Validating Boolean Inputs with Laravel Form Requests Body: When building web applications, one of the essential aspects is making sure that...

2026-06-29 Stefan Bogdanescu
Laravel Company

laravel/ui[v3.2.0, ..., 3.x-dev] require illuminate/console ^8.0

"Laravel/UI Composer Requirements Explained" Title: Laravel/UI[v3.2.0, ..., 3.x-dev] require illuminate/console ^8.0 Greetings fellow developers! You might...

2026-06-29 Stefan Bogdanescu
Laravel Company

Artisan, creating tables in database

Title: Creating Tables in Laravel Databases Using Artisan Commands Artisan is a command-line interface (CLI) for the Laravel PHP framework that allows...

2026-06-29 Stefan Bogdanescu