I were there

Things that I've learned on my path to become a great developer.

Upgrading Webpack to Vite in Laravel Sail

Laravel has just added support for Vite, a very powerful frontend development tool, and you can use it if you make some small changes, as suggested on the official page for this migration.

But if you are also using Sail, which is a useful tool for integrating Docker into your development environment, you will also have to make some other changes.

Keep reading

Halí July 06, 2022

Convert mp4 to gif

We, dev people, have the need to post evidence of different behaviors of our desktop in many places (issues, documentation, blogs, etc.).

In this post, We’ll learn how to convert an mp4 file to gif in two simple steps.



First, we need to extract the frames from our video. FFmpeg can do it with the next command:

Keep reading

Halí November 15, 2019

Laravel routes in JavaScript

TL;DR With a Package https://github.com/halivert/laravel-js-routes

We generally use JavaScript for the front-end in our applications, if we also use Laravel we notice that it includes a very useful wrapper called Laravel Mix, that can preprocess our JS files.

Keep reading

Halí July 05, 2020