Tag laravel

Actions in Laravel beyond CRUD

Wrenches
In the past couple of months, I’ve been enjoying reading Brent’s writing on PHP & Laravel. The test and types article is one of my favorites, as it highlights the importance of types and creating objects that reflect precise concepts,…

Paginating Laravel API resources in InertiaJS applications

Later edit: Paginating Laravel API resources now works as Reinink added support for Responsable props. If you’re a Laravel developer working with InertiaJS, there’s a good chance you played around with PingCRM, the application Jonathan build to illustrate how InertiaJS…

Laravel: Why I gave up on $fillable

Laravel fillable vs guarded
Mass-assignment is when you use an array to create/update eloquent models. The $fillable and $guarded model properties are part of Laravel’s solution to avoid mass-assigning unwanted attributes when someone passes an unexpected HTTP parameter through a request and ends up…

Gainslog now makes daily backups to Google Drive

Thanks to this great tutorial on how to extend Laravel’s storage to Google Drive, Gainslog now pushes daily updates to Google Drive. Following the tutorial, one issue people run into is a File not found error when running the backup…