ycore/fortify-tailwind

Tailwind CSS-styled authentication blade views for ycore/fortify-ui

v1.2.2 2021-04-08 07:00 UTC

This package is auto-updated.

Last update: 2024-04-08 14:01:12 UTC


README

fortify-banner.svg

Introduction

Fortify-tailwind provides authentication UI views and scaffolding for FortifyUI, styled with Tailwind CSS.

Latest Version on Packagist

Installation

  1. To get started, install Fortify-tailwind using Composer.
$ composer require ycore/fortify-tailwind

This command initializes FortifyUI and publishes the Fortify-tailwind authentication views and scaffolding.

  • Publishes authentication blade views to resources/views/
  • Contains require tailswindcss in webpack.mix.js
  • Includes tailwindcss @imports in resources/app.css
  • Appends a home route to routes/web.php
  • Enables the login and register Laravel Fortify features

This package and FortifyUI both utilize package auto-discovery. There is no need to add the service providers manually.

  1. Next, publish the Fortify-tailwind authentication views and scaffolding:
$ php artisan fortify-ui:tailwind
  1. Then, install & initialize tailwindcss and build the assets
 npm install tailwindcss autoprefixer --save-dev
 npx tailwindcss init
 npm install
 npm run dev

Fortify-tailwind installs a sensible default configuration based on the Laravel Fortify recommendations. The login, logout, registration and reset-passwords features and routes are enabled by default. If these defaults are sufficient, there is no need for additional configuration.

Installation options

Fortify-tailwind is designed to be re-installed. Use the --force or --views-only options to overwrite previously-installed views or scaffolding.

Overwrite all previously installed views and scaffolding

$ php artisan fortify-ui:tailwind --force

Overwrite all previously installed views only

$ php artisan fortify-ui:tailwind --views-only

More configuration options

FortifyUI also provides more configuration options via the fortify-ui:publish command. See the FortifyUI configuration section for details on publishing additional configuration options.

Changelog

Please see the Changelog for more information on what has changed recently.

Security

Should you discover any security-related issues, please email y-core@outlook.com instead of using the issue tracker.

Credits

License

MIT. Please see the License file for more information.