Blog

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

Laravel Company

Laravel5 how to pass array to view

Title: Simplifying Array Passing from Controller to View in Laravel 5 Introduction: In Laravel 5, passing data between your controller and view is a...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel testing, get JSON content

Title: Effortlessly Retrieving JSON Responses during Laravel Testing Introduction: In Laravel's unit testing world, dealing with API endpoints that return JSON...

2026-06-29 Stefan Bogdanescu
Laravel Company

Creating a custom exception class and custom handler class in Laravel 5.3

Title: Custom Exception Class and Handler for Displaying a Unique 404 Page in Laravel 5.3 Introduction: As a web app developer, you might have encountered...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel - htmlspecialchars() expects parameter 1 to be string, object given

Title: Troubleshooting Laravel's "htmlspecialchars() expects parameter 1 to be string, object given" Error Body: When working with JSON data in your Laravel...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to get keys name from array in laravel

Title: How to Retrieve Array Keys as Names in Laravel When working with models and their data, you may want to get the keys' names of a returned array. In this...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to add 1 hour to date Carbon?

Title: Efficiently Adding One Hour to a Date with Carbon's Date Time Manipulation Functionality Body: The Carbon library provides extensive support for working...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to install Laravel 5.0

Title: Setting up a Laravel 5.0 Test Environment for Development Laravel is an open-source PHP framework that has become increasingly popular in recent years...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel post route with url parameters

Title: Understanding Laravel Route Parameters for Post Requests Body: You seem to be facing an issue with passing URL parameters in your Laravel application...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel validation pdf mime

Title: Tackling PDF MIME Types Validation Challenges in Laravel Introduction: In today's world, digital documents are important for businesses and personal use...

2026-06-29 Stefan Bogdanescu
Laravel Company

Error:Your requirements could not be resolved to an installable set of packages.(on server)

Title: Resolving "Error: Your requirements could not be resolved to an installable set of packages." on Server Issues Body: When working with Laravel 5.3, you...

2026-06-29 Stefan Bogdanescu
Laravel Company

Argument 1 passed, must be of the type array, string given

Title: Argument 1 passed must be of the type array, string given - Resolving Laravel 5.8 Error Body: In this blog post, we will discuss the common error that...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to solve conflicts with your root composer.json require?

Title: Solving Conflicts with Root Composer.json Requirements Introduction: Composer is an essential tool for Laravel developers that enables us to manage...

2026-06-29 Stefan Bogdanescu