Back Button Laravel
How to Create Custom Laravel Presets

How to Create Custom Laravel Presets

Laravel ships with a small handful of custom front-end presets, but if you'd like to tailor the scaffolding specifically to your needs and preferences, no problem! It's easy. If you have a half-hour to spare, in this series I'll show you exactly how to tweak the configuration.

Intermediate
5 episodes
26:36 mins
5
Latest Episode in This Series

Added 1 year ago

Final Tweaks

Now that anyone can pull in our preset, let's make a few final tweaks and call it...

Watch
How to Create Custom Laravel Presets

How to Create Custom Laravel Presets

Laravel ships with a small handful of custom front-end presets, but if you'd like to tailor the scaffolding specifically to your needs and preferences, no problem! It's easy. If you have a half-hour to spare, in this series I'll show you exactly how to tweak the configuration.

Begin
5
Latest Episode in This Series

Added 1 year ago

Final Tweaks

Now that anyone can pull in our preset, let's make a few final tweaks and call it...
Watch

Your Teacher | Jeffrey Way

https://laracasts.s3.amazonaws.com/avatars/jeffrey-avatar.jpg's avatar
Hi, I'm Jeffrey. I'm the creator of Laracasts and spend most of my days building the site and thinking of new ways to teach confusing concepts. I live in Orlando, Florida with my wife and two kids.
    1. EPISODE 1

      Run Time 6:12

      Free

      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.

    2. EPISODE 2

      Run Time 7:16

      Free

      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.

    3. EPISODE 3

      Run Time 3:59

      Free

      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.

    4. EPISODE 4

      Run Time 6:01

      Free

      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.

    5. EPISODE 5

      Run Time 3:08

      Free

      Now that anyone can pull in our preset, let's make a few final tweaks and call it a series!

      View the source code for this episode on GitHub.