Blog

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

Laravel Company

How can I query raw via Eloquent?

Title: Efficient Raw Querying with Eloquent in Laravel Applications Introduction: In the world of modern PHP frameworks, Laravel offers a robust set of tools...

2026-06-29 Stefan Bogdanescu
Laravel Company

E: Package 'mysql-client' has no installation candidate in php-fpm image build using docker compose

Title: Solving "Package 'mysql-client' has no installation candidate" Issue in Docker Compose for Laravel Apps Introduction: In your attempt to set up a...

2026-06-29 Stefan Bogdanescu
Laravel Company

Is there a way to "limit" the result with ELOQUENT ORM of Laravel?

Title: Limiting Results with Eloquent ORM in Laravel: Techniques and Best Practices When using the Laravel Framework's Eloquent Object Relational Mapper (ORM)...

2026-06-29 Stefan Bogdanescu
Laravel Company

Download a file in Laravel using a URL to external resource

Title: Downloading Files from External Resources Using Laravel or Plain PHP Introduction: In this blog post, we will explore the process of downloading...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel: Auth::user()->id trying to get a property of a non-object

Title: Troubleshooting Laravel Auth::user()->id Error: Handling "non-object" Issues in Form Submissions Introduction: When working with web applications,...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to set .env values in laravel programmatically on the fly

Title: Programmatically Handling .env Values in Laravel: A Comprehensive Guide for Enhancing Custom CMS Flexibility As a senior developer working on a custom...

2026-06-29 Stefan Bogdanescu
Laravel Company

add background image in laravel 5

Title: Adding a Background Image in Laravel 5 Made Easy Introduction: Incorporating a background image to your website is an effective way of enhancing its...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to get data from database to view page in laravel?

Title: Displaying Database Data in Laravel Views Effortlessly Introduction Laravel is a powerful PHP framework that offers various features to simplify web...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 5.1 API Enable Cors

Title: Comprehensive Guide on Enabling CORS for Laravel 5.1 API Introduction: In today's world of dynamic web applications and cross-origin concerns, enabling...

2026-06-29 Stefan Bogdanescu
Laravel Company

PHPExcel Error: Array and string offset access syntax with curly braces is deprecated

Title: PHPExcel Error: Array and string offset access syntax with curly braces is deprecated Body: Introduction ------------------------- Since upgrading to...

2026-06-29 Stefan Bogdanescu
Laravel Company

Job has been attempted too many times or run too long

Title: Troubleshooting Queue Jobs that Run for Extended Time or are Repeatedly Retried in Laravel Applications Body: You've implemented a robust system with a...

2026-06-29 Stefan Bogdanescu
Laravel Company

Image Validation in Laravel 5 Intervention

Title: Image Validation in Laravel 5 Intervention - A Comprehensive Guide Body: Image validation plays an important role when dealing with user-submitted...

2026-06-29 Stefan Bogdanescu