Blog

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

Laravel Company

Laravel: orderBy a column with collections

Title: Efficiently Ordering Collections by Update Timestamp in Laravel In Laravel, when working with collections, the order of elements is not predictable...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to extract month, day from created_at column in Laravel?

Title: Efficiently Extracting Date Parts from Laravel's created_at Column Body: Displaying the date in a specific format is a common requirement for...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to validate current, new, and new password confirmation in Laravel 5?

Title: Validating Current, New, and Confirmation Passwords in Laravel 5 Body: In a web application using Laravel 5, password validation is essential for...

2026-06-29 Stefan Bogdanescu
Laravel Company

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

Title: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known - A Comprehensive Guide to Solving Laravel Database...

2026-06-29 Stefan Bogdanescu
Laravel Company

Use different PHP version CLI executable for one command

Title: Efficiently Use Different PHP Version CLI Executables for One Command Body: You have a Gentoo box with three PHP versions installed (never mind the...

2026-06-29 Stefan Bogdanescu
Laravel Company

change password user laravel 5.3

Title: Change Password User in Laravel 5.3: A Comprehensive Guide Introduction: In this article, we will learn how to create a form for changing the password...

2026-06-29 Stefan Bogdanescu
Laravel Company

PHP Laravel: No connection could be made because the target machine actively refused it

Title: Understanding and Resolving "No connection could be made because the target machine actively refused it" Error in Laravel PHP Apps Body: Laravel...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 8 - Could not find driver : Illuminate\Database\QueryException could not find driver (SQL: select * from `list`)

Title: Laravel 8 - Fixing "could not find driver" Issues with MySQL Connections for CRUD Methods Body: Many newcomers to Laravel 8 may encounter issues when...

2026-06-29 Stefan Bogdanescu
Laravel Company

hasMany vs belongsToMany in laravel 5.x

Title: Understanding hasMany and belongsToMany Relationships in Laravel 5.x In Laravel, Eloquent relationships allow us to easily define, access and manage...

2026-06-29 Stefan Bogdanescu
Laravel Company

how and where can store images with laravel?

Title: A Comprehensive Guide on Storing Images with Laravel - Efficiently Managing Media Uploads for Your Web App Intro: Images are an essential part of any...

2026-06-29 Stefan Bogdanescu
Laravel Company

Axios request has been blocked by cors no 'Access-Control-Allow-Origin' header is present on the requested resource

Title: Understanding and Resolving CORS Issues in Laravel Applications Body: One of the most common errors you might encounter when working with web APIs is an...

2026-06-29 Stefan Bogdanescu
Laravel Company

Access query string values from Laravel

Title: Accessing Query String Values from Laravel Routes Laravel is an elegant PHP framework that provides developers with various tools to build powerful...

2026-06-29 Stefan Bogdanescu