Mike Rockétt Systems Developer & Designer @ Megafreight

Crafter of beautiful software.

I design and develop web-based apps that solve real-world problems and are a joy to use. I’m currently part of a small team building an exciting end-to-end solution for the freight forwarding industry.

In my free time, I contribute to open-source and share helpful tips and insights in my blog below.

You can get in touch with me or reach out on Twitter.

Posts

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.

14 March 2021, 4 min read The future of build tools, and moving on from Webpack #dev#ecma-script#javascript

Browsers have caught up – developers should too.

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.

16 August 2020, 3 min read Elegant routing for Vue with Routisan 3 #vue#package#announcements

Vue Routisan has a new life – a v3 alpha has been released for testing!

20 April 2020, 12 min read You really don’t need Vuex #vue#vuex#dev

Seriously, it’s overkill, and much of what goes on can be replaced with observable objects.

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

A cleaner way to validate console input.

14 February 2020, 4 min read Let’s Shorten those Shell Commands #bash#zsh#tips

Some useful shell aliases for your development pleasure.

14 February 2020, 7 min read To name, or not to name #javascript#ecma-script#modules

In the world of JavaScript modules, default exports are really a compatibility layer for CommonJS-of-old. Named exports solve problems may developers experience – this post explores them.

25 January 2020, 10 min read Component Factories for Vue #vue#dev#package

It’s not uncommon to follow the default approach and register global Vue components manually. But there’s a better way. Two of them, in fact. And we can do it for Vuex too, but that’s for another post.

12 January 2020, 2 min read New Decade, New Blog #announcements

Starting afresh in 2020, with a new blog, in a new decade.

8 August 2018, 5 min read State Helpers for Vuex #vue#vuex#dev

Shorter code is great. Even shorter code is even better. In this post, you’ll learn how to drastically shorten the length of your Vuex mutations, making for some really clean code.

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.

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.

28 December 2016, 5 min read Macroify your Apache Virtual Hosts #apache#vhost#wildcard

If you’re on Windows, chances are you don’t have a handy package like Valet to make your development-workflow easier. If you’re using a standard Apache installation, this might go a long way in speeding things up.