A TALL (Tailwind CSS, Alpine.js, Laravel, and Livewire) Preset for Laravel

A TALL (Tailwind CSS, Alpine.js, Laravel, and Livewire) Preset for Laravel

There is a newly available frontend preset for Laravel that can get you up-and-running quickly with the TALL stack. If you’re not familiar with the name, it’s an acronym that describes the main technologies involved in the stack:

This stack was popularised by Matt Stauffer as he created tallstack.dev to promote its benefits and showcase novapackages.com, which was built with these tools.

This preset takes all of the pain of setting up a new application out of the way by providing some well-thought-out boilerplate. Here are some notable features:

  • Frontend assets like TailwindCSS and AlpineJS are set up with Laravel Mix
  • Tailwind UI and Tailwind’s Custom Forms extensions are available out-of-the-box
  • Views extend a default layout

To install the preset in a fresh Laravel application:

composer require livewire/livewire laravel-frontend-presets/tall
php artisan ui tall
npm install
npm run dev

If you want authentication in your application, make sure to use the --auth flag on the preset command to get all the relevant routes, controllers, components and views:

composer require livewire/livewire laravel-frontend-presets/tall
php artisan ui tall --auth
npm install
npm run dev

There are some notable things about the authentication scaffolding, too:

  • Most of the auth scaffolding comes as Livewire components
  • The parts that can’t be components are set up as single-action controllers
  • The auth components come with full tests

All routes, components, controllers, and tests are published to your application. The idea behind this is that you can then take full control over every aspect of the scaffolding in your own app and not need to dig around in the vendor folder to figure out how things are working.

The default login screen that comes with the TALL scaffolding (from Tailwind UI)

This preset was put together by Dan Harrin, Ryan Chandler and Liam Hammett.

If you’re keen to get started on a new project with these technologies, check out the preset’s readme for installation instructions and more information.

Filed in: Laravel Packages
Laravel News Partners

Laravel Jobs

Medior Laravel Backend Developer (The Netherlands/Dutch only)
Nijmegen, The Netherlands
BigSpark B.V.
Laravel Developer
Remote
Enjin
Senior Laravel Backend Engineer
Remote, USA Only
Kittyhawk.io, Inc.
Full Stack Developer
Rijssen
CODE14
Senior PHP Developer
Remote
ProjectMark

Newsletter

Join 31,000+ others and never miss out on new tips, tutorials, and more.