Blog

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

Laravel Company

Sending credit card numbers directly to the Stripe API is generally unsafe. To continue processing use Stripe.js

# Sending Credit Card Numbers Directly to the Stripe API is Generally Unsafe: The Developer's Guide to Secure Payments As developers building applications that...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to check if something is countable?

# How to Check if Something is Countable: Moving Beyond Arrays in PHP As developers, we constantly deal with data structures. Whether we are working with a...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to call model function into my controller in laravel

# How to Call Model Functions into Your Controller in Laravel: The Right Way As developers working within the Laravel ecosystem, understanding how to properly...

2026-06-29 Stefan Bogdanescu
Laravel Company

How to attach a PDF using barryvdh/laravel-dompdf into an email in Laravel

# How to Attach a PDF using barryvdh/laravel-dompdf into an Email in Laravel Dealing with file attachments within email systems can often be a sticking point,...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Homestead with Apache server

# Laravel Homestead with Apache Server: Mastering Virtual Hosts and Environment Setup Switching between development environments, especially when dealing with...

2026-06-29 Stefan Bogdanescu
Laravel Company

Unable to insert into PostgreSQL using laravel eloquent ORM

# Fixing the Eloquent Insertion Headache: Dealing with PostgreSQL Composite Keys I did my research a lot before posting this. As a senior developer working...

2026-06-29 Stefan Bogdanescu
Laravel Company

About problem in installing ext-sodium * for installing lcobucci/jwt 4.3.0 and kreait/firebase-tokens 4.3.0 for laravel project

# Solving Dependency Hell: Installing `ext-sodium` for JWT and Firebase Token Packages in Laravel As senior developers building robust applications, we often...

2026-06-29 Stefan Bogdanescu
Laravel Company

Disable password reset from Laravel

# How I Can Disable Password Reset in Laravel: A Developer's Guide Dealing with authentication features is a cornerstone of any web application, but sometimes...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel 5.4 Mail, passing data

# Mastering Data Passing in Laravel Mail: A Deep Dive for Laravel 5.4 Sending dynamic data via email is a fundamental requirement for most web applications,...

2026-06-29 Stefan Bogdanescu
Laravel Company

Laravel Sail - SQLSTATE[HY000] [2002] No such file or directory

# Solving the Docker Migration Headache: Why Laravel Sail Gets SQLSTATE[HY000] [2002] As a senior developer working with containerized applications, I...

2026-06-29 Stefan Bogdanescu
Laravel Company

Add custom middleware to Laravel Passport endpoints

# Adding Custom Middleware to Laravel Passport Endpoints: A Deep Dive As developers working with robust authentication systems like Laravel Passport, we often...

2026-06-29 Stefan Bogdanescu
Laravel Company

Check if session key exists in Laravel 5.1?

Title: Efficiently Checking Session Keys in Laravel 5.1 Introduction ---------------------- In Laravel 5.1, it's essential to be able to efficiently check if a...

2026-06-29 Stefan Bogdanescu