TALL preset for Laravel.
Installs: 429 690
Dependents: 4
Suggesters: 0
Security: 0
Stars: 2 477
Watchers: 58
Forks: 207
Open Issues: 8
Language:Blade
Requires
- php: ^8.2
- illuminate/support: ^11.0
- laravel/ui: ^4.5
Requires (Dev)
- phpunit/phpunit: ^10.5
- dev-master
- v8.0.0
- v7.0.2
- v7.0.1
- v7.0.0
- v6.2.0
- v6.1.0
- v6.0.0
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v4.2.0
- v4.1.0
- v4.0.0
- v3.1.0
- v3.0.0
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.1
- v2.0.0
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.0
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.0
- dev-dependabot/composer/symfony/process-7.1.7
- dev-dependabot/composer/symfony/http-foundation-7.1.7
- dev-extra
This package is auto-updated.
Last update: 2024-11-24 17:06:34 UTC
README
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:
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
- Dan Harrin
- Liam Hammett
- Ryan Chandler
- Tailwind UI for the default authentication and pagination views
- All Contributors