By Alexandru Stratulat.

About Laravel and things.

April 04, 20205 min read

⚡️ Dedicated, autocompleted and typed Eloquent query builders

Wouldn't it be cool if Laravel's query builder had autocomplete? Let's explore how we can achieve this with dedicated query builders.

March 10, 20205 min read

🍬 Casting JSON columns to DTOs with Laravel's custom casts

Custom casts have finally arrived with Laravel 7. Let's explore how we can take advantage of this new feature to get full autocomplete and type checking of JSON columns.

March 03, 20204 min read

🔐 Safely persisting Vuex store in local storage

Find out how the centralized store of your Vue app can be safely persisted in the local storage.

March 02, 20203 min read

⚛︎ Mapping requests to DTOs inside Laravel's form requests

Let's explore how to map a request to a DTO inside form requests and keep our controllers clean.

February 27, 20202 min read

🧪 Testing Laravel Vapor file uploads

In this post I'll cover file upload testing for apps running on Vapor, since there is no official documentation on how to do it.

February 27, 20202 min read

👀 Validating Laravel Vapor file uploads

In this post you'll find out to how to define a reusable validation rule for direct S3 file uploads.

February 26, 20204 min read

🧬 Moving from Laravel API resources to DTOs

You'll discover how the default Laravel API resources can be replaced with Data Transfer Objects using Spatie's package and a few adjustments.