Mike Rockétt Systems Developer & Designer @ Megafreight

Posts tagged #laravel

5 January 2018, 5 min read Custom Messages in Laravel Form Requests #laravel#dev#tips

From Laravel 5.5, JSON responses are a little different. In particular, you’ll find that validation exceptions have changed, and it’s easy to miss what the upgrade guide says about it.

7 July 2018, 9 min read Some quick and useful Laravel tips #laravel#dev#tips

Since November 2017, I’ve been working with a small web-dev firm that uses Laravel for all its clients’ API backends. Over time, we’ve been taking new approaches to solving problems, and simplifying our code to make life easier in the long run. Here are some quick and useful tips we’ve been following as part of this process.

16 February 2020, 3 min read Artisan Console Input Validation #laravel#dev#tips

A cleaner way to validate console input.

6 February 2021, 3 min read Avoiding repetition in Laravel Eloquent Resources #dev#laravel

Making resource classes just a bit easier to work with.

6 February 2021, 4 min read A clean approach to casting Eloquent Resources in Laravel #dev#laravel

Using helpers and scopes in a trait, make the model responsible for determining its resource class.

11 April 2021, 1 min read WeasyPrint for Laravel, v5 is released! #announcements#laravel#package

I’m pleased to announce the immediate release of Weasyprint for Laravel, v5.