Skip to content

Commit

Permalink
Merge branch 'patch-ui-command-to-work-correctly-without-the-auth-opt…
Browse files Browse the repository at this point in the history
…ion'
  • Loading branch information
michaeldyrynda committed Mar 7, 2020
2 parents 64e82b0 + 5bdbb58 commit d3725c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A Laravel front-end scaffolding preset for [Tailwind CSS](https://tailwindcss.co

### b. For Presets 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`)
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`)
4. `npm install && npm run dev`
5. Configure your favorite database (mysql, sqlite etc.)
6. `php artisan migrate` to create basic user tables.
Expand Down
1 change: 0 additions & 1 deletion src/TailwindCssPreset.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public static function install()

public static function installAuth()
{
static::install();
static::scaffoldController();
static::scaffoldAuth();
}
Expand Down
10 changes: 5 additions & 5 deletions src/TailwindCssPresetServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public function boot()
TailwindCssPreset::install();

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

AuthCommand::macro('tailwindcss', function ($command) {
TailwindCssPreset::installAuth();
if ($command->option('auth')) {
TailwindCssPreset::installAuth();

$command->info('Tailwind CSS auth scaffolding installed successfully.');
}

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

Expand Down

0 comments on commit d3725c5

Please sign in to comment.