Blog

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

Laravel Company

Argument 1 passed to Illuminate\\Database\\Query\\Builder::cleanBindings() must be of the type array, string given

Title: Argument 1 passed to Illuminate\Database\Query\Builder::cleanBindings() must be of the type array, string given - Understanding and Resolving Common...

2026-06-29 Stefan Bogdanescu
Laravel Company

Convert a collection of models to an array of models

Title: Efficiently Convert Collections of Models to Arrays Using Eloquent Relationships in Laravel Body: Transforming collections into arrays is an essential...

2026-06-29 Stefan Bogdanescu
Laravel Company

Upload file using Guzzle 6 to API endpoint

Title: Upload File Using Guzzle 6 to API Endpoint: A Comprehensive Guide Introduction The process of uploading files through an HTTP request is essential for...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to get the http referer in laravel?

Title: A Comprehensive Guide on Retrieving HTTP Referrer in Laravel Applications Introduction In today's digital world, understanding where your users are...

2026-06-29 Stefan Bogdanescu
Laravel Company

"laravel.log" could not be opened: failed to open stream

Title: Resolving the Laravel Homestead "Failed to Open Stream" Issue Introduction: You have been working on setting up Laravel Homestead on your local OSX...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel - Load common header and footer to view

Title: Loading Common Header, Footer, and Views in Laravel for Efficiency In modern web development, efficiency is a must-have trait for application...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Access denied for user 'root'@'localhost' (using password: YES) in laravel 4.2

Title: Resolving Access Denied Errors for Laravel 4.2 Users on Localhost Introduction Laravel is a popular PHP framework that allows developers to create...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to get last insert id in Eloquent ORM laravel

Title: Efficiently Retrieving Last Insert IDs in Laravel's Eloquent ORM Body: Laravel is an incredible PHP framework built with MVC architecture that has...

2026-06-29 Stefan Bogdanescu
Laravel Company

After upgrading Laravel from 5.6 to 6.0, Call to undefined str_random() function not working

Title: Resolving "undefined" str_random() Function after Upgrading Laravel from 5.6 to 6.0 Body: Upgrading your Laravel application from version 5.6 to 6.0 can...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel change pagination data

Title: Laravel Pagination Data Manipulation for Custom Object Arrays Body: Laravel provides an efficient pagination system for displaying data in an organized...

2026-06-29 Stefan Bogdanescu
Laravel Company

Hosting Laravel on a cPanel server with public_html directory

Hosting Laravel on a cPanel Server with Public_html Directory: A Comprehensive Guide In the realm of web development, hosting your application is an essential...

2026-06-29 Stefan Bogdanescu
Laravel Company

PHP7.1 and Laravel 5.3: Function mcrypt_get_iv_size() is deprecated

Title: Resolving "mcrypt_get_iv_size() is deprecated" Error when Upgrading from PHP7.0 to 7.1 with Laravel 5.3 Body: When updating your PHP version, it's not...

2026-06-29 Stefan Bogdanescu