Run Time 6:12Free
Laravel presets allow us to configure the initial front-end scaffolding for any new Laravel project. While the framework ships with a few options out of the box, if you wish, you can create and distribute your own presets. To begin, we'll leverage Laravel's
Macroable trait to construct a new preset type.
Run Time 7:16Free
You'll likely want to replace or remove a number of the default npm packages that are included out of the box. Luckily, Laravel offers a method to assist with this.
Run Time 3:59Free
In this episode, we'll create a handful of stubs. In this context, a stub is simply a placeholder file that is constructed exactly as we wish for it to appear in our project.
Run Time 6:01Free
Now that our preset is mostly complete, the next step is to distribute it as a reusable Composer package. Don't worry, it's easy.
View the source code for this episode on GitHub.