Tag: laravel
After I had success with my unit and feature tests
watcher script I decided to
build something similar for a Laravel Dusk E2E (end-to-end) test too.
However, it was a little bit different this time as I have found out after
many iterations.
I started up simply updating the watche…
After migrating from Laravel Sail to Herd on Mac I needed to also find a
way to make websockets work, as this app used them. Previously I was
relying on soketi and it was running under its own docker compose, but with
Sail gone, this went too. Sure I could just run soketi from np…
Some time ago, I decided to improve the codebase of one of my large
actively developed Laravel projects to conform to
strict larastan level 9
rule. At the first run, the analysis reported over 1200 errors, an
absolutely massive undertaking for a single person.
I started over a ye…
With the release of PHP8.4 I tried experimenting with the features it
provides. One such feature is support for properties in interfaces.
Interfaces were getting a few improvements over time, but up to PHP8.3 only
methods were allowed, omitting properties from the definition.
Wan…
I was successfully able to use my previous Laravel
test watcher for a very
long time, while I was on Linux. But now on Mac, it does not work, as mac
does not support inotifywait.
Mac does however support similar thing, called fswatch, install via Brew:
brew install fswatch
Howev…
I use
Laravel model factories
quite extensively. Here's an
older related post,
in case you are interested. I tend to create a lot of methods inside them
to simplify tests, utilizing
Factory States.
The current docs show the following example for using Factory States:
<?php
na…
This is a trashpost mostly used to store all the links I had in my tab.
Also, I might need it again or it could help someone. There might me
incomplete, missing or conflicting information below so take this with a
grain of salt.
Dockerfile#
Whatever you Dockerfile contents are, …