Blog

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

Laravel Company

laravel request validation rules pass parameter

# Passing Model Context into Laravel Validation Rules: A Deep Dive As developers working with Laravel, we constantly strive for clean, reusable, and...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 5.6 additional Route::resource() Parameters

# Mastering Route Parameters: Adding Custom Segments to Laravel Resource Routes As developers working with Laravel, we frequently rely on the elegant...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to get the last 4 characters in a string - Laravel

# How to Extract the Last Characters from a String in Laravel: A Developer's Guide When working with data retrieved from a database, often the raw string...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel: PDOException: could not find driver

Title: Laravel: Solving PDOException Issues When Working With SQL Drivers on Limited Server Access Introduction When working on limited server access with...

2026-06-29 Stefan Bogdanescu
Laravel Company

Redirect to external URL with return in laravel

Title: Redirecting to External URLs with Return Values in Laravel Applications Body: Redirecting to external URLs can be challenging when it comes to returning...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to validate phone number in laravel?

# How to Validate Phone Numbers with Specific Prefixes in Laravel As a senior developer working with the Laravel ecosystem, ensuring data integrity is...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to test POST routes in Laravel

# Mastering POST Route Testing in Laravel: Beyond Simple Calls As a senior developer working with the Laravel ecosystem, testing stateful interactions like...

2026-06-29 Stefan Bogdanescu
Laravel Company

Adding seconds with Carbon

# Adding Seconds with Carbon: Solving the Fatal Error in Date Manipulation Working with dates and times in any application, especially when interacting with...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to use Traits - Laravel 5.2

# Mastering Code Reusability: How to Effectively Use Traits in Laravel As developers, we constantly battle code repetition. When we find ourselves writing the...

2026-06-29 Stefan Bogdanescu
Laravel Company

laravel dompdf Undefined type 'PDF'

# Solving the "Undefined type 'PDF'": Mastering Laravel PDF Generation with DomPDF As a senior developer working within the Laravel ecosystem, you frequently...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel: Route::resource() GET & POST work, but PUT & DELETE throw MethodNotAllowedHttpException

# Laravel Routing Mystery: Why Resource Routes Seem Selective with HTTP Methods As a senior developer working with frameworks like Laravel, we often encounter...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to pass multiple parameters to middleware with OR condition in Laravel 5.2

# How to Pass Multiple Parameters with OR Condition to Middleware in Laravel Dealing with access control and permissions in web applications often leads...

2026-06-29 Stefan Bogdanescu