Skip to content

Commit

Permalink
make config stub. set default guard
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 15, 2022
1 parent 82724e7 commit fff4df4
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 57 deletions.
57 changes: 1 addition & 56 deletions config/jetstream.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,63 +3,8 @@
use Laravel\Jetstream\Features;

return [

/*
|--------------------------------------------------------------------------
| Jetstream Stack
|--------------------------------------------------------------------------
|
| This configuration value informs Jetstream which "stack" you will be
| using for your application. In general, this value is set for you
| during installation and will not need to be changed after that.
|
*/

'stack' => 'inertia',

/*
|--------------------------------------------------------------------------
| Jetstream Route Middleware
|--------------------------------------------------------------------------
|
| Here you may specify which middleware Jetstream will assign to the routes
| that it registers with the application. When necessary, you may modify
| these middleware; however, this default value is usually sufficient.
|
*/

'middleware' => ['web'],

/*
|--------------------------------------------------------------------------
| Features
|--------------------------------------------------------------------------
|
| Some of Jetstream's features are optional. You may disable the features
| by removing them from this array. You're free to only remove some of
| these features or you can even remove all of these if you need to.
|
*/

'features' => [
// Features::termsAndPrivacyPolicy(),
// Features::profilePhotos(),
// Features::api(),
// Features::teams(['invitations' => true]),
Features::accountDeletion(),
],

/*
|--------------------------------------------------------------------------
| Profile Photo Disk
|--------------------------------------------------------------------------
|
| This configuration value determines the default disk that will be used
| when storing profile photos for your application's users. Typically
| this will be the "public" disk but you may adjust this if needed.
|
*/

'features' => [Features::accountDeletion()],
'profile_photo_disk' => 'public',

];
2 changes: 1 addition & 1 deletion src/JetstreamServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected function configurePublishing()
}

$this->publishes([
__DIR__.'/../config/jetstream.php' => config_path('jetstream.php'),
__DIR__.'/../stubs/config/jetstream.php' => config_path('jetstream.php'),
], 'jetstream-config');

$this->publishes([
Expand Down
78 changes: 78 additions & 0 deletions stubs/config/jetstream.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?php

use Laravel\Jetstream\Features;

return [

/*
|--------------------------------------------------------------------------
| Jetstream Stack
|--------------------------------------------------------------------------
|
| This configuration value informs Jetstream which "stack" you will be
| using for your application. In general, this value is set for you
| during installation and will not need to be changed after that.
|
*/

'stack' => 'inertia',

/*
|--------------------------------------------------------------------------
| Jetstream Route Middleware
|--------------------------------------------------------------------------
|
| Here you may specify which middleware Jetstream will assign to the routes
| that it registers with the application. When necessary, you may modify
| these middleware; however, this default value is usually sufficient.
|
*/

'middleware' => ['web'],

/*
|--------------------------------------------------------------------------
| Jetstream Guard
|--------------------------------------------------------------------------
|
| Here you may specify the authentication guard Jetstream will use while
| authenticating users. This value should correspond with one of your
| guards that is already present in your "auth" configuration file.
|
*/

'guard' => 'sanctum',

/*
|--------------------------------------------------------------------------
| Features
|--------------------------------------------------------------------------
|
| Some of Jetstream's features are optional. You may disable the features
| by removing them from this array. You're free to only remove some of
| these features or you can even remove all of these if you need to.
|
*/

'features' => [
// Features::termsAndPrivacyPolicy(),
// Features::profilePhotos(),
// Features::api(),
// Features::teams(['invitations' => true]),
Features::accountDeletion(),
],

/*
|--------------------------------------------------------------------------
| Profile Photo Disk
|--------------------------------------------------------------------------
|
| This configuration value determines the default disk that will be used
| when storing profile photos for your application's users. Typically
| this will be the "public" disk but you may adjust this if needed.
|
*/

'profile_photo_disk' => 'public',

];

0 comments on commit fff4df4

Please sign in to comment.