Blog

Articles, notes, and practical lessons

Here I share thoughts, ideas, and experience from building web applications, improving business workflows, and delivering software that holds up over time.

Image upload test journey

For my open-source project, I needed an option for the user to upload an image. Furthermore, this image needed to be resized. For resizing, I used a well-know package called Intervention. The testing...

How to test signed routes?

What are signed URLs? From Laravel's documentation: Laravel allows you to easily create "signed" URLs to named routes. These URLs have a "signature" hash appended to the query stri...

Few use cases for PHPUnit's data providers

What are they? Martin Hujer explanation Tighten's validation example Validation rules testing /** * @test * @dataProvider formValidationProvider */ public function test_validation_rules($input, $...

How to test global scopes in Laravel?

Today I'll share some hopefully useful ideas for testing global scope classes in Laravel borrowing code from a real-life example from the open-source project of mine called laravellte. I use an outsid...