Laravel

25 posts
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 infrastructure using HashiCorp Terraform, Laravel Forge and Cloudflare

Setting up infrastructure using HashiCorp Terraform, Laravel Forge and Cloudflare

If you’ve used Terraform before and you want to jump to the meat of how to combine Terraform, Forge, and Cloudflare, jump to the paragraph titled “Combining Terraform, Forge, and Cloudflare“ Introduction I have recently joined a project which required a transition from existing infrastructure to a brand new...

Google Workspace SSO and automated user provisioning

Google Workspace SSO and automated user provisioning

One of the client projects I work on has larger, enterprise customers. Because of this, I needed to create a way for their users to sign into our application using single sign-on (SSO). To do that, we needed to automatically provision users in our system. This is something I wasn’...

The easiest production-ready image to run your Laravel application

The easiest production-ready image to run your Laravel application

It’s no secret that we are big fans of Docker during our daily development work. It’s still one of the easiest ways to ensure a common working environment when developing locally and avoid the “It works on my machine” arguments. Even Laravel ships with a default Docker-based environment...

Performance tips for Laravel

Performance tips for Laravel

Recently, we were looking into some Laravel PHP8 performance issues we were experiencing on one screen of a web application. This screen would show an aggregation of several statistics across the application and would include things like: * The total number of tickets, grouped by their status (open, closed, …) * The total...

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.