Blog
Insights, guides, and best practices from the Laravel Company team.
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...