Laravel

30 posts
🌶️ Why Native PHP shouldn’t exist

🌶️ Why Native PHP shouldn’t exist

Building desktop apps with NativePHP misuses Laravel’s core strengths, creating potential security risks and practical limitations.

Making an existing Laravel application multi-tenant with Tenancy for Laravel

Making an existing Laravel application multi-tenant with Tenancy for Laravel

Transforming a legacy application into a multi-tenant powerhouse is no small feat. Learn how we tackled the challenges of adding multi-tenancy to a Laravel app, from infrastructure planning to custom bootstrappers, and discover practical tips to future-proof your applications.

Cookie-based authentication with Laravel Sanctum

Cookie-based authentication with Laravel Sanctum

This is a detailed step-by-step guide for setting up Laravel Sanctum with cookie-based authentication. It explains the logic behind each step and how to set up Postman. We also tackle the most common CORs issues.

Mocking external systems in e2e tests

Mocking external systems in e2e tests

Struggling with a legacy codebase? We used Playwright to automate QA, reducing bugs. By mocking external APIs like Google Maps, we ensured seamless testing. Learn our implementation with Laravel and Playwright for reliable results.

PHP lied to me

PHP lied to me

We discuss the challenges of using PHPStan at its strictest level for type checking, particularly with 'mixed' types. It explores solutions like using strval() and creating custom functions, but ultimately, the author opts to lower PHPStan's strictness due to complexity, ending with mixed feelings.

The command pattern in Laravel

The command pattern in Laravel

This post delves into the Command Bus pattern, highlighting its use in software architectures and Laravel implementation. It covers commands as user actions, command handlers, and the Command Bus for execution, emphasizing the pattern's role in simplifying and maintaining code structure and logic.

Gradually migrating between mail providers in Laravel

Gradually migrating between mail providers in Laravel

Migrate between two email providers in a Laravel project with ease of mind while maintaining control.

Setting up Laravel Horizon in Google Cloud Run

Setting up Laravel Horizon in Google Cloud Run

“Wait, what? Cloud Run is serverless!” I hear you shout in confusion as you jump out of your chair. Well, give me a chance to explain because, apparently, this is not something that has been tried before. At least it’s not well documented online, as I am sure your...

Logging non-Laravel queries to Telescope

Logging non-Laravel queries to Telescope

One of the legacy projects we are dealing with is using old-school mysqli queries all over the place. We have wrapped the application in a Laravel shell, we’ll write about this in another post soon. One of the major complaints from the customer was the speed of the application....

You’ve successfully subscribed to madewithlove
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.