Skip to content

Commit fff4df4

Browse files
committedJan 15, 2022
make config stub. set default guard
1 parent 82724e7 commit fff4df4

File tree

3 files changed

+80
-57
lines changed

3 files changed

+80
-57
lines changed
 

‎config/jetstream.php

+1-56
Original file line numberDiff line numberDiff line change
@@ -3,63 +3,8 @@
33
use Laravel\Jetstream\Features;
44

55
return [
6-
7-
/*
8-
|--------------------------------------------------------------------------
9-
| Jetstream Stack
10-
|--------------------------------------------------------------------------
11-
|
12-
| This configuration value informs Jetstream which "stack" you will be
13-
| using for your application. In general, this value is set for you
14-
| during installation and will not need to be changed after that.
15-
|
16-
*/
17-
186
'stack' => 'inertia',
19-
20-
/*
21-
|--------------------------------------------------------------------------
22-
| Jetstream Route Middleware
23-
|--------------------------------------------------------------------------
24-
|
25-
| Here you may specify which middleware Jetstream will assign to the routes
26-
| that it registers with the application. When necessary, you may modify
27-
| these middleware; however, this default value is usually sufficient.
28-
|
29-
*/
30-
317
'middleware' => ['web'],
32-
33-
/*
34-
|--------------------------------------------------------------------------
35-
| Features
36-
|--------------------------------------------------------------------------
37-
|
38-
| Some of Jetstream's features are optional. You may disable the features
39-
| by removing them from this array. You're free to only remove some of
40-
| these features or you can even remove all of these if you need to.
41-
|
42-
*/
43-
44-
'features' => [
45-
// Features::termsAndPrivacyPolicy(),
46-
// Features::profilePhotos(),
47-
// Features::api(),
48-
// Features::teams(['invitations' => true]),
49-
Features::accountDeletion(),
50-
],
51-
52-
/*
53-
|--------------------------------------------------------------------------
54-
| Profile Photo Disk
55-
|--------------------------------------------------------------------------
56-
|
57-
| This configuration value determines the default disk that will be used
58-
| when storing profile photos for your application's users. Typically
59-
| this will be the "public" disk but you may adjust this if needed.
60-
|
61-
*/
62-
8+
'features' => [Features::accountDeletion()],
639
'profile_photo_disk' => 'public',
64-
6510
];

‎src/JetstreamServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected function configurePublishing()
158158
}
159159

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

164164
$this->publishes([

‎stubs/config/jetstream.php

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?php
2+
3+
use Laravel\Jetstream\Features;
4+
5+
return [
6+
7+
/*
8+
|--------------------------------------------------------------------------
9+
| Jetstream Stack
10+
|--------------------------------------------------------------------------
11+
|
12+
| This configuration value informs Jetstream which "stack" you will be
13+
| using for your application. In general, this value is set for you
14+
| during installation and will not need to be changed after that.
15+
|
16+
*/
17+
18+
'stack' => 'inertia',
19+
20+
/*
21+
|--------------------------------------------------------------------------
22+
| Jetstream Route Middleware
23+
|--------------------------------------------------------------------------
24+
|
25+
| Here you may specify which middleware Jetstream will assign to the routes
26+
| that it registers with the application. When necessary, you may modify
27+
| these middleware; however, this default value is usually sufficient.
28+
|
29+
*/
30+
31+
'middleware' => ['web'],
32+
33+
/*
34+
|--------------------------------------------------------------------------
35+
| Jetstream Guard
36+
|--------------------------------------------------------------------------
37+
|
38+
| Here you may specify the authentication guard Jetstream will use while
39+
| authenticating users. This value should correspond with one of your
40+
| guards that is already present in your "auth" configuration file.
41+
|
42+
*/
43+
44+
'guard' => 'sanctum',
45+
46+
/*
47+
|--------------------------------------------------------------------------
48+
| Features
49+
|--------------------------------------------------------------------------
50+
|
51+
| Some of Jetstream's features are optional. You may disable the features
52+
| by removing them from this array. You're free to only remove some of
53+
| these features or you can even remove all of these if you need to.
54+
|
55+
*/
56+
57+
'features' => [
58+
// Features::termsAndPrivacyPolicy(),
59+
// Features::profilePhotos(),
60+
// Features::api(),
61+
// Features::teams(['invitations' => true]),
62+
Features::accountDeletion(),
63+
],
64+
65+
/*
66+
|--------------------------------------------------------------------------
67+
| Profile Photo Disk
68+
|--------------------------------------------------------------------------
69+
|
70+
| This configuration value determines the default disk that will be used
71+
| when storing profile photos for your application's users. Typically
72+
| this will be the "public" disk but you may adjust this if needed.
73+
|
74+
*/
75+
76+
'profile_photo_disk' => 'public',
77+
78+
];

0 commit comments

Comments
 (0)
Please sign in to comment.