laravel-frontend-presets/tall that uses daisyUI.
This is a fork ofUsing daisyUI, you can easily change the theme of your app. You can also use the theme switcher component to allow your users to change the theme of your app on the fly.
Laravel DALL Preset
A front-end preset for Laravel to scaffold an application using the DALL 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 daisyUI and Alpine.js compiled with Vite 3
- daisyUI-powered pagination views
- A theme switcher is provided as a blade component.
- By default all the daisyUI themes are enabled. You can disable them in the
tailwind.config.js
file.
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 better-futures-studio/dall
php artisan ui dall
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 better-futures-studio/dall
php artisan ui dall --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.
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
laravel-frontend-presets/tall package credits:
The original- Dan Harrin
- Liam Hammett
- Ryan Chandler
- Tailwind UI for the default authentication and pagination views
- All Contributors