Blog

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

Laravel Company

PHP Parse error: syntax error, unexpected '=' in /vendor/symfony/string/Resources/functions.php on line 34 lot of problem faced from the vendor

# Decoding the Dreaded Vendor Error: Solving PHP Parse Errors in Laravel Deployments As senior developers, we all know the feeling: deploying a project,...

2026-06-29 Stefan Bogdanescu
Laravel Company

Call to a member function all() on array laravel excel

# Mastering Data Export in Laravel: Solving the Array Nightmare with Laravel Excel As a senior developer working within the Laravel ecosystem, we frequently...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to pass parameter in Laravel model relation

# Mastering Dynamic Relations: How to Pass Parameters and Constraints in Laravel Models As a senior developer working with the Laravel ecosystem, you...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel ShouldQueue How Does It Work

# Laravel ShouldQueue: Unpacking the Magic Behind Queueable Workflows I know how to use `ShouldQueue`; my question is about why does it work the way it does....

2026-06-29 Stefan Bogdanescu
Laravel Company

laravel 8 how to get user id using bearer token

# Laravel 8: How to Get User ID Using a Bearer Token Safely Working with API authentication in Laravel, especially when dealing with conditional logic based on...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to mock Laravel Eloquent model with phpunit?

# How to Mock Laravel Eloquent Models with PHPUnit: Navigating the ORM Challenge Testing services that rely heavily on Eloquent models often presents a unique...

2026-06-29 Stefan Bogdanescu
Laravel Company

Composer 2.3.0 dropped support for PHP less than 7.2.5 and you are running 7.1.33

# Composer Version Conflicts: Navigating PHP and Dependency Management Headaches Dealing with version conflicts in the ecosystem—especially when dealing with...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Update Record using Query Builder

# Mastering Dynamic Updates in Laravel: Moving Beyond Raw Query Builder Strings As a senior developer working with the Laravel ecosystem, you frequently...

2026-06-29 Stefan Bogdanescu
Laravel Company

Sorting Eloquent Union query results

Title: Sorting Eloquent Union Query Results: Understanding the Challenges and Solutions Body: In Eloquent ORM, when working with database queries that involve...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Passport API: Retrieve Authenticated Token

# Laravel Passport API: Retrieve Authenticated Token Context for External Agents ## Situation I am currently utilizing Laravel Passport to establish...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Migration - Adding Check Constraints In Table

# Laravel Migration: Implementing Custom `CHECK` Constraints in Database Schema As developers working with Laravel migrations, we often aim to define the...

2026-06-29 Stefan Bogdanescu
Laravel Company

Trait 'App\HasRoles' not found error in laravel 5.6

# Fixing the 'Trait not found' Error: Implementing Role Systems in Laravel 5.6 Setting up authorization and role management is a crucial step in building any...

2026-06-29 Stefan Bogdanescu