Blog

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

Laravel Company

Carbon Difference in Time between two Dates in hh:mm:ss format

Title: Carbon Difference in Time between Two Dates in hh:mm:ss Format Body: In this blog post, we will explore how to calculate the difference between two date...

2026-06-29 Stefan Bogdanescu
Laravel Company

Mail::send() not working in Laravel 5

# Troubleshooting Mail::send() Errors in Laravel 5: Why Your Email Functionality Broke As a senior developer working with the Laravel ecosystem, you’ve...

2026-06-29 Stefan Bogdanescu
Laravel Company

laravel phpunit test with api token authentication

# Testing Laravel API Authentication with PHPUnit: Handling Bearer Tokens Testing API endpoints that rely on token-based authentication presents a common...

2026-06-29 Stefan Bogdanescu
Laravel Company

Connection could not be established with host mailhog :stream_socket_client()

# Resolving SMTP Connection Errors with MailHog: A Deep Dive into `getaddrinfo` Failures As a senior developer working with modern PHP frameworks like Laravel,...

2026-06-29 Stefan Bogdanescu
Laravel Company

Eloquent relations - attach (but don't save) to Has Many

# Eloquent Relations: Attaching Models Without Saving on Has Many Relationships Eloquent’s relational system is one of its most powerful features, allowing...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Validation login

# Mastering Laravel Login: Where Validation Meets Authentication It is a very common hurdle when starting with web application development, especially within...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 5.8 How to get the job Id?

# Laravel 5.8: How to Correctly Retrieve the Job ID within a Queued Job As senior developers working with asynchronous processing in Laravel, dealing with job...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel : Passing extra parameter on Collection filtering

# Laravel: Passing Extra Parameters When Filtering Collections—The Right Way The desire to filter a collection based on data from outside its immediate scope...

2026-06-29 Stefan Bogdanescu
Laravel Company

BinaryFileResponse in Laravel undefined

# Solving the BinaryFileResponse Mystery: Handling File Responses in Laravel As senior developers working within the Laravel ecosystem, we frequently encounter...

2026-06-29 Stefan Bogdanescu
Laravel Company

laravel 4 - how to Limit (Take and Skip) for Eloquent ORM?

# Laravel Eloquent: How to Limit (Take and Skip) for Eloquent ORM? ## TL;DR Can you limit an Eloquent ORM query like using `take()` and `skip()` so that the...

2026-06-29 Stefan Bogdanescu
Laravel Company

Blade if(isset) is not working Laravel

Title: Troubleshooting Blade if(isset) Issues in Laravel Applications Introduction: Laravel's blade template engine is an integral part of the framework that...

2026-06-29 Stefan Bogdanescu
Laravel Company

Logout issue with Laravel JWT-auth authentication

# Mastering Token Invalidation: Solving Logout Issues in Laravel JWT-Auth As a senior developer working with modern API authentication, we frequently encounter...

2026-06-29 Stefan Bogdanescu