Skip to content

Commit 5bdbb58

Browse files
Display info when both base scaffolding, and auth scaffolding installed
Closes #89 Closes #90
1 parent 4d084c3 commit 5bdbb58

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A Laravel front-end scaffolding preset for [Tailwind CSS](https://tailwindcss.co
1515

1616
### b. For Presets with Authentication
1717

18-
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`)
18+
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`)
1919
4. `npm install && npm run dev`
2020
5. Configure your favorite database (mysql, sqlite etc.)
2121
6. `php artisan migrate` to create basic user tables.

src/TailwindCssPresetServiceProvider.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ public function boot()
1414
UiCommand::macro('tailwindcss', function ($command) {
1515
TailwindCssPreset::install();
1616

17-
if ( $command->option('auth') ) {
17+
$command->info('Tailwind CSS scaffolding installed successfully.');
18+
19+
if ($command->option('auth')) {
1820
TailwindCssPreset::installAuth();
21+
22+
$command->info('Tailwind CSS auth scaffolding installed successfully.');
1923
}
2024

21-
$command->info('Tailwind CSS scaffolding installed successfully.');
2225
$command->comment('Please run "npm install && npm run dev" to compile your fresh scaffolding.');
2326
});
2427

0 commit comments

Comments
 (0)