Blog

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

Laravel Company

Laravel Eloquent Ignore Casing

Title: Laravel Eloquent Ignore Casing: Efficiently Handling Search Queries with Mixed Case Fields Body: In many database tables, fields containing data might...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel - How to use faker in PHPUnit test?

Title: Laravel - How to Use Faker in PHPUnit Test? Body: When developing applications using Laravel, one of the essential components is testing. Testing...

2026-06-29 Stefan Bogdanescu
Laravel Company

SQLSTATE[HY000]: General error: 1005 Can't create table - Laravel 4

Title: Understanding and Troubleshooting SQLSTATE[HY000]: General Error: 1005 in Laravel 4 Migrations Introduction SQLSTATE[HY000]: General error: 1005 Can't...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to install Laravel 5.4?

Title: A Comprehensive Guide to Installing Laravel 5.4 Beta Version - Exciting New Features Await You As the Laravel community eagerly awaits the official...

2026-06-29 Stefan Bogdanescu
Laravel Company

How Can I Set the Default Value of a Timestamp Column to the Current Timestamp with Laravel Migrations?

Title: Setting Default Values for Timestamp Columns in Laravel Migrations: Exploring Alternatives to CURRENT_TIMESTAMP Body: The Laravel documentation provides...

2026-06-29 Stefan Bogdanescu
Laravel Company

Create and save csv to storage in Laravel

Title: Efficiently Create, Save, and Update CSV Files in Laravel for Storage and Database Management Introduction: In this article, we'll provide a...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel: Encode JSON responses in UTF-8

Title: Encode JSON Responses in Laravel API with UTF-8 Support Body: In this comprehensive blog post, we will discuss the process of encoding JSON responses...

2026-06-29 Stefan Bogdanescu
Laravel Company

PHP/Laravel - Create an array of objects from two simple arrays or an associative array that combines that two

Title: PHP/Laravel - Efficiently Transforming Simple Arrays or Associative Arrays into Object Arrays Body: Transforming an array of objects from given inputs...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel: How to store Excel File in a given path?

Title: Laravel: Storing Excel Files in a Specified Path Using Blade Views and Controller Functions Introduction Laravel provides various tools for creating...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to add comment in Mysql column using Laravel Migrations

Title: Adding Comments on MySQL Columns Using Laravel Migrations Introduction: As software engineers working with Laravel, managing databases efficiently is...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel sometimes validation rule

Title: Understanding Laravel's 'sometimes' Validation Rule for Password Fields Body: Validation in web applications plays a vital role in ensuring user data is...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Auth user id in controller

Title: Laravel Auth User ID in Controllers: A Comprehensive Guide Introduction -------------------- Welcome to our guide on how to retrieve the user ID of a...

2026-06-29 Stefan Bogdanescu