Skip to content

Commit

Permalink
Merge branch 'v2-inertia-publishables' into 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 6, 2021
2 parents d24c41b + b28ee67 commit 90b1cf9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ Rename the `resources/views/navigation-dropdown.blade.php` file to `navigation-m

#### Authentication Views

In order for Jetstream 2.x to continue to render your Blade based authentication views, you should add the following code to the `boot` method of your application's `JetstreamServiceProvider` class:
Jetstream 2.0's Inertia stack uses Vue based authentication pages. In order to use the new Vue based authentication pages, you will need to publish them using the `vendor:publish` Artisan command:

php artisan vendor:publish --tag=jetstream-inertia-auth-pages

Or, if you wish to to continue to render your Blade based authentication views in Jetstream 2.x, you should add the following code to the `boot` method of your application's `JetstreamServiceProvider` class:

```php
use Illuminate\Support\Facades\Route;
Expand Down
8 changes: 8 additions & 0 deletions src/JetstreamServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ protected function configurePublishing()
$this->publishes([
__DIR__.'/../routes/'.config('jetstream.stack').'.php' => base_path('routes/jetstream.php'),
], 'jetstream-routes');

$this->publishes([
__DIR__.'/../stubs/inertia/resources/js/Pages/Auth' => resource_path('js/Pages/Auth'),
__DIR__.'/../stubs/inertia/resources/js/Jetstream/AuthenticationCard.vue' => resource_path('js/Jetstream/AuthenticationCard.vue'),
__DIR__.'/../stubs/inertia/resources/js/Jetstream/AuthenticationCardLogo.vue' => resource_path('js/Jetstream/AuthenticationCardLogo.vue'),
__DIR__.'/../stubs/inertia/resources/js/Jetstream/Checkbox.vue' => resource_path('js/Jetstream/Checkbox.vue'),
__DIR__.'/../stubs/inertia/resources/js/Jetstream/ValidationErrors.vue' => resource_path('js/Jetstream/ValidationErrors.vue'),
], 'jetstream-inertia-auth-pages');
}

/**
Expand Down

0 comments on commit 90b1cf9

Please sign in to comment.