• Stars
    star
    2,414
  • Rank 18,975 (Top 0.4 %)
  • Language Blade
  • License
    MIT License
  • Created over 4 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Laravel TALL Preset

CI Status Total Downloads

A front-end preset for Laravel to scaffold an application using the TALL stack, jumpstarting your application's development.

If you're not familiar with the name, it's an acronym that describes the main technologies involved in the stack:

Login View

Some notable features of this package include:

  • Views extending a default layout
  • Front-end assets like Tailwind CSS and Alpine.js compiled with Vite 3
  • Tailwind-powered pagination views
  • The Tailwind UI and Tailwind's Custom Forms extensions available out-of-the-box

Note: If you're looking for an application boilerplate that supports the TALL stack, you should check out Laravel Jetstream. It comes with authentication scaffolding, account management, teams support.

Installation

This preset is intended to be installed into a fresh Laravel application. Follow Laravel's installation instructions to ensure you have a working environment before continuing.

Installation (without auth)

Then simply run the following commands:

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

Installation (with auth)

If you would like to install the preset and its auth scaffolding in a fresh Laravel application, make sure to use the --auth flag on the ui command:

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

Some notable features of the authentication scaffolding include:

  • Powered by Livewire components and single action controllers
  • Bundled with pre-written tests

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

CSS purging

Tailwind uses PurgeCSS to remove any unused classes from your production CSS builds. You can modify or remove this behaviour in the purge section of your tailwind.config.js file. For more information, please see the Tailwind documentation.

Removing the package

If you don't want to keep this package installed once you've installed the preset, you can safely remove it. Unlike the default Laravel presets, this one publishes all the auth logic to your project's /app directory, so it's fully redundant.

A note on pagination

If you are using pagination, you set the default pagination views to the ones provided in the boot method of a service provider:

use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    public function boot()
    {
        Paginator::defaultView('pagination::default');

        Paginator::defaultSimpleView('pagination::simple-default');
    }
}

Credits

More Repositories

1

tailwindcss

A Tailwind CSS frontend preset for the Laravel Framework
Blade
1,147
star
2

material-dashboard

Material Frontend Preset For Laravel Framework 9.x and Up
CSS
259
star
3

argon

Argon Frontend Preset For Laravel Framework 9.x and Up
HTML
230
star
4

now-ui-dashboard

CSS
226
star
5

bulma

Bulma Frontend Preset For Laravel Framework 5.5 and Up
HTML
171
star
6

inertiajs

An Inertia.js frontend preset for the Laravel Framework
PHP
145
star
7

black-dashboard

Black Frontend Preset For Laravel Framework 9.x and Up
CSS
85
star
8

laravel-vuetify

A Vuetify frontend preset for the Laravel Framework
HTML
80
star
9

zurb-foundation

Zurb Foundation Frontend Preset For Laravel Framework 5.5 and Up
SCSS
52
star
10

paper-dashboard

CSS
49
star
11

white-dashboard

CSS
48
star
12

uikit3

Laravel 5.5+ Front-end preset for UIKit 3.
HTML
44
star
13

laravel-preset-bootstrap4

HTML
39
star
14

light-bootstrap-dashboard

Blade
34
star
15

skeleton

A skeleton repository to help users to create their own presets.
PHP
13
star
16

stimulus

Laravel 5.5+ frontend preset for Stimulus
PHP
10
star
17

tachyons

Laravel 5.5.x front-end preset for Tachyons scaffolding
HTML
8
star
18

tabler

Laravel 7.x Front-end preset for Tabler UI
HTML
7
star
19

laravel-frontend-presets.github.io

The Laravel Frontend Presets' Website
HTML
7
star
20

w3css

Laravel 5.5.x Front-end Preset For W3CSS
HTML
4
star
21

karma-eslint

Laravel Preset for using Karma, ESLint (Airbnb), along with your built in laravel-mix & Vue.js setup, to get a working unit testing & code coverage for your JS assets.
JavaScript
3
star
22

internals

For Internal Discussion
2
star
23

primercss

Laravel 5.5.x front-end preset for Primer CSS scaffolding
PHP
1
star