Blog

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

Laravel Company

how to fix "The Process class relies on proc_open, which is not available on your PHP installation" on cpanel shared host

# How to Fix "The Process class relies on proc_open" on cPanel Shared Hosting As developers, we often encounter frustrating roadblocks when moving applications...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to use delete on cascade in Laravel?

# How to Use `ON DELETE CASCADE` Correctly in Laravel: Solving Foreign Key Cascade Mysteries As a senior developer working with relational databases and...

2026-06-29 Stefan Bogdanescu
Laravel Company

htmlspecialchars expects parameter 1 to be string, array given

# Decoding the Error: Fixing `htmlspecialchars()` When Dealing with JSON in Blade As developers working with dynamic data in frameworks like Laravel, one of...

2026-06-29 Stefan Bogdanescu
Laravel Company

Postgres and Laravel how to change column from type string to integer?

# Mastering Database Migrations: Changing Data Types from String to Integer in PostgreSQL with Laravel As developers working with relational databases like...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to change a column type from integer to biginteger while other tables have foreign id relation in laravel?

# Evolving Your Schema: How to Change Column Types While Preserving Foreign Key Relationships in Laravel As senior developers working with relational...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to do simple testing of a Laravel controller?

# How to Do Simple Testing of a Laravel Controller: Moving Beyond Manual Calls In the world of web application development, testing is non-negotiable. Whether...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to set Laravel Carbon timezone for timestamps?

Title: A Comprehensive Guide on Setting Laravel Carbon Timezone for Timestamps Introduction Laravel is an extensible PHP framework that provides a powerful set...

2026-06-29 Stefan Bogdanescu
Laravel Company

Set the Authorization Bearer header in Guzzle HTTP client After Login Action - Laravel

# Setting the Authorization Bearer Header in Guzzle After Login Action in Laravel Working with modern RESTful APIs often involves a critical step:...

2026-06-29 Stefan Bogdanescu
Laravel Company

Call to a member function pluck() on null

# Avoiding the Pitfall: Handling `Call to a member function pluck() on null` in Laravel As senior developers, we spend a significant amount of time debugging...

2026-06-29 Stefan Bogdanescu
Laravel Company

Class 'NumberFormatter' not found in Laravel 5.4

# Resolving Class 'NumberFormatter' Not Found in Legacy PHP Environments As a senior developer, I frequently encounter issues related to environment setup and...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to return an array as an API resource in laravel 5.5

# How to Return Complex Arrays as API Resources in Laravel 5.5: A Deep Dive into Data Flow As developers building robust APIs with Laravel, we constantly face...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel exclude current id from query eloquent results

# Laravel Query Mastery: How to Exclude the Current Record from Eloquent Results Welcome to the world of Laravel! It’s a framework packed with powerful tools,...

2026-06-29 Stefan Bogdanescu