Articles

Don't stop building

I really enjoy building scripts for my own workflow. I wish I had the skills to build things in the real world, but until then I’ll keep building stuff in the digital space only. Although I love working with PHP and Laravel, it is Bash that has re-ignited a passion in me to just build...

Tags Laravel bash scripting PHP

Inventory app: saving inventory items.

This is the absolute bare bones minimum implementation for my inventory keeping: saving items to my inventory list. Super simple, but meant only as an example of how I’d work when working on an API. Here are the changes made to my Inventory Manager. Those changes include the test and logic for the initial index...

Tags Laravel PHP Laravel Inventory App

Adding Laravel Jetstream to a fresh Laravel project

I only have this post here as there was a couple of extra steps I made after regular installation, which I wanted to keep a note of. Here are the changes made to my Inventory Manager. Follow the Jetstream Installation guide Firstly I just follow the official installation guide. When it came to running the...

Tags Laravel PHP Laravel Inventory App

Given, When, Then: how I approach Test-driven development in Laravel

Laravel is an incredible PHP framework and the best starting point for pretty much any web-based application (if writing it in PHP, that is). Along with it's many amazing features, comes a beautiful framework from which to test what you are building. For the longest time I cowered at the idea of writing automated tests...

Tags Laravel PHP TDD

Sprinklings of Docker for local development

When I search for docker-related topics online, it almost seems to me that there are two trains of thought for the most part: I believe either of these is a valid approach - whatever feels right to you. Of course it does also depend on how your company / team works. But I'd like to...

Tags Laravel Docker mariadb mysql

Preview Laravel's migrations with the pretend flag

Here is the command to preview your Laravel migrations without running them: Laravel's migrations give us the power to easily version control our database schema creations and updates. In a recent task at work, I needed to find out why a particular migration was failing. This is when I discovered the simple but super-useful flag...

Tags Laravel PHP