

GitHub - laravel-frontend-presets/tall: A TALL (Tailwind CSS, Alpine.js, Laravel...
source link: https://github.com/laravel-frontend-presets/tall
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Laravel TALL Preset
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 Laravel Mix
- 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
Recommend
-
93
README.md BetterTouchTool Touch Bar Presets Here we collect cool touch bar presets for BetterTouchTool. Feel free to send your own configs in pull-requests. Do...
-
12
-
2
@sloggingSlogging (Slack Blogging)Your Slack? Insightful words by highly intelligent people. Your tech blog? Not so much. Write together. #SloggingBeta
-
4
Day 3: an infinitely tall fridge • rc-2020 • Hello! Here are some notes from Day 3 at the Recurse Center. This post is an extremely short one from the to...
-
5
7 Best Big and Tall Gaming Chairs to Consider in 2021August 25th 2021 new story4
-
7
A tall order — LG’s 16:18 ultra-tall monitor means less scrolling LG's vertical monitor offers a longer view fit for coders and scrollers. ...
-
8
Single File Monorepo Config, Custom Workspace Presets, Improved Tailwind Support, and more in Nx 13.4!Nx logoNx is a smart, extensible build framework to help you architect, test,...
-
6
scientifica Tall and condensed bitmap font for geeks. scientifica is largely based on creep, with a number of minor tweaks to...
-
5
Alpine, Tailwind, Deno, SQLite 我的本地服务四件套 2022-07-02 有时会想要写一些本地服务来满足自己特定的需求。这...
-
4
date-form Customizable date formatter with builtin presets. npm install date-form yarn add date-form Usage Each preset listed below contains their own set of codes used for...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK