tailwindcomponents/laravel-preset

This package is abandoned and no longer maintained. No replacement package was suggested.

Laravel frontend preset for Tailwind CSS

2.0.0 2021-01-18 09:54 UTC

This package is auto-updated.

Last update: 2021-12-18 11:53:34 UTC


README

License Latest Stable Version Total Downloads Monthly Downloads 68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c3f6c6162656c3d5461696c77696e64636f6d706f6e656e7473267374796c653d736f6369616c2675726c3d6874747073253341253246253246747769747465722e636f6d2532465477436f6d706f6e656e7473

🛹 A Laravel front-end scaffolding preset for Tailwind CSS - a Utility-First CSS Framework for Rapid UI Development.

Installation and usage

This package requires Laravel 7.0 or higher.

  1. Fresh install Laravel and cd to your app.
  2. Install composer require tailwindcomponents/laravel-preset --dev.

a. Preset WITHOUT Authentication

  1. Use php artisan ui tailwindcss for the basic Tailwind CSS preset.
  2. npm install && npm run dev
  3. php artisan serve (or equivalent) to run server and test preset.

b. Preset WITH Authentication

  1. Use php artisan ui tailwindcss --auth for the basic preset, auth route entry, and Tailwind CSS auth views in one go. (NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php)
  2. npm install && npm run dev
  3. Configure your favorite database (mysql, sqlite etc.)
  4. php artisan migrate to create basic user tables.
  5. php artisan serve (or equivalent) to run server and test preset.

Config

The default tailwind.config.js configuration file included by this package simply uses the config from the Tailwind vendor files. Should you wish to make changes, you should remove the file and run node_modules/.bin/tailwind init, which will generate a fresh configuration file for you, which you are free to change to suit your needs.

Screenshots

Dashboard

Login

Register

Reset Password

Reset Password

Verify

Pagination

Pagination