Laravel Tip π‘
If your model uses ULIDs, Laravel 13.25 adds foreignUlidFor() to make foreign key columns cleaner.
Instead of manually defining the ULID column and foreign key:
$table->foreignUlidFor(User::class);
One less thing to repeat in your migrations.
Feed
Laravel Tip π‘
Repeating the same audit fields across migrations? Define them once with a custom Blueprint macro, then reuse them with $table->auditFields().
One place to maintain common migration fields, instead of repeating them everywhere.
GitHub Actions Tip π‘
Need to trigger a workflow in another repository?
We use repository_dispatch to automatically update mrpunyapal.dev/tips whenever the tips repo changes.
One repo can trigger another repo's workflow with a custom event. π
I know how boring it is to scroll and find a tip to read.
Therefore I just added random tip button on MrPunyapal.dev/tips π