Skip to content

Commit ce3e1c4

Browse files
committed
update to l11
1 parent 934b727 commit ce3e1c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+279
-1536
lines changed

app/Http/Controllers/Controller.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
abstract class Controller
66
{
77
//
8-
}
8+
}

bootstrap/app.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
})
1616
->withExceptions(function (Exceptions $exceptions) {
1717
//
18-
})->create();
18+
})->create();

bootstrap/providers.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
return [
44
App\Providers\AppServiceProvider::class,
5-
];
5+
App\Providers\Filament\AdminPanelProvider::class,
6+
];

config/app.php

+23-86
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
<?php
22

3-
use Illuminate\Support\Facades\Facade;
4-
use Illuminate\Support\ServiceProvider;
5-
63
return [
74

85
/*
96
|--------------------------------------------------------------------------
107
| Application Name
118
|--------------------------------------------------------------------------
129
|
13-
| This value is the name of your application. This value is used when the
10+
| This value is the name of your application, which will be used when the
1411
| framework needs to place the application's name in a notification or
15-
| any other location as required by the application or its packages.
12+
| other UI elements where an application name needs to be displayed.
1613
|
1714
*/
1815

@@ -51,80 +48,62 @@
5148
|
5249
| This URL is used by the console to properly generate URLs when using
5350
| the Artisan command line tool. You should set this to the root of
54-
| your application so that it is used when running Artisan tasks.
51+
| the application so that it's available within Artisan commands.
5552
|
5653
*/
5754

5855
'url' => env('APP_URL', 'http://localhost'),
5956

60-
'asset_url' => env('ASSET_URL'),
61-
6257
/*
6358
|--------------------------------------------------------------------------
6459
| Application Timezone
6560
|--------------------------------------------------------------------------
6661
|
6762
| Here you may specify the default timezone for your application, which
68-
| will be used by the PHP date and date-time functions. We have gone
69-
| ahead and set this to a sensible default for you out of the box.
63+
| will be used by the PHP date and date-time functions. The timezone
64+
| is set to "UTC" by default as it is suitable for most use cases.
7065
|
7166
*/
7267

73-
'timezone' => 'UTC',
68+
'timezone' => env('APP_TIMEZONE', 'UTC'),
7469

7570
/*
7671
|--------------------------------------------------------------------------
7772
| Application Locale Configuration
7873
|--------------------------------------------------------------------------
7974
|
8075
| The application locale determines the default locale that will be used
81-
| by the translation service provider. You are free to set this value
82-
| to any of the locales which will be supported by the application.
83-
|
84-
*/
85-
86-
'locale' => 'en',
87-
88-
/*
89-
|--------------------------------------------------------------------------
90-
| Application Fallback Locale
91-
|--------------------------------------------------------------------------
92-
|
93-
| The fallback locale determines the locale to use when the current one
94-
| is not available. You may change the value to correspond to any of
95-
| the language folders that are provided through your application.
76+
| by Laravel's translation / localization methods. This option can be
77+
| set to any locale for which you plan to have translation strings.
9678
|
9779
*/
9880

99-
'fallback_locale' => 'en',
81+
'locale' => env('APP_LOCALE', 'en'),
10082

101-
/*
102-
|--------------------------------------------------------------------------
103-
| Faker Locale
104-
|--------------------------------------------------------------------------
105-
|
106-
| This locale will be used by the Faker PHP library when generating fake
107-
| data for your database seeds. For example, this will be used to get
108-
| localized telephone numbers, street address information and more.
109-
|
110-
*/
83+
'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
11184

112-
'faker_locale' => 'en_US',
85+
'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
11386

11487
/*
11588
|--------------------------------------------------------------------------
11689
| Encryption Key
11790
|--------------------------------------------------------------------------
11891
|
119-
| This key is used by the Illuminate encrypter service and should be set
120-
| to a random, 32 character string, otherwise these encrypted strings
121-
| will not be safe. Please do this before deploying an application!
92+
| This key is utilized by Laravel's encryption services and should be set
93+
| to a random, 32 character string to ensure that all encrypted values
94+
| are secure. You should do this prior to deploying the application.
12295
|
12396
*/
12497

98+
'cipher' => 'AES-256-CBC',
99+
125100
'key' => env('APP_KEY'),
126101

127-
'cipher' => 'AES-256-CBC',
102+
'previous_keys' => [
103+
...array_filter(
104+
explode(',', env('APP_PREVIOUS_KEYS', ''))
105+
),
106+
],
128107

129108
/*
130109
|--------------------------------------------------------------------------
@@ -140,50 +119,8 @@
140119
*/
141120

142121
'maintenance' => [
143-
'driver' => 'file',
144-
// 'store' => 'redis',
122+
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
123+
'store' => env('APP_MAINTENANCE_STORE', 'database'),
145124
],
146125

147-
/*
148-
|--------------------------------------------------------------------------
149-
| Autoloaded Service Providers
150-
|--------------------------------------------------------------------------
151-
|
152-
| The service providers listed here will be automatically loaded on the
153-
| request to your application. Feel free to add your own services to
154-
| this array to grant expanded functionality to your applications.
155-
|
156-
*/
157-
158-
'providers' => ServiceProvider::defaultProviders()->merge([
159-
/*
160-
* Package Service Providers...
161-
*/
162-
163-
/*
164-
* Application Service Providers...
165-
*/
166-
App\Providers\AppServiceProvider::class,
167-
App\Providers\AuthServiceProvider::class,
168-
// App\Providers\BroadcastServiceProvider::class,
169-
App\Providers\EventServiceProvider::class,
170-
App\Providers\Filament\AdminPanelProvider::class,
171-
App\Providers\RouteServiceProvider::class,
172-
])->toArray(),
173-
174-
/*
175-
|--------------------------------------------------------------------------
176-
| Class Aliases
177-
|--------------------------------------------------------------------------
178-
|
179-
| This array of class aliases will be registered when this application
180-
| is started. However, feel free to register as many as you wish as
181-
| the aliases are "lazy" loaded so they don't hinder performance.
182-
|
183-
*/
184-
185-
'aliases' => Facade::defaultAliases()->merge([
186-
// 'Example' => App\Facades\Example::class,
187-
])->toArray(),
188-
189126
];

config/auth.php

+17-17
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
| Authentication Defaults
88
|--------------------------------------------------------------------------
99
|
10-
| This option controls the default authentication "guard" and password
11-
| reset options for your application. You may change these defaults
10+
| This option defines the default authentication "guard" and password
11+
| reset "broker" for your application. You may change these values
1212
| as required, but they're a perfect start for most applications.
1313
|
1414
*/
1515

1616
'defaults' => [
17-
'guard' => 'web',
18-
'passwords' => 'users',
17+
'guard' => env('AUTH_GUARD', 'web'),
18+
'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
1919
],
2020

2121
/*
@@ -25,11 +25,11 @@
2525
|
2626
| Next, you may define every authentication guard for your application.
2727
| Of course, a great default configuration has been defined for you
28-
| here which uses session storage and the Eloquent user provider.
28+
| which utilizes session storage plus the Eloquent user provider.
2929
|
30-
| All authentication drivers have a user provider. This defines how the
30+
| All authentication guards have a user provider, which defines how the
3131
| users are actually retrieved out of your database or other storage
32-
| mechanisms used by this application to persist your user's data.
32+
| system used by the application. Typically, Eloquent is utilized.
3333
|
3434
| Supported: "session"
3535
|
@@ -47,12 +47,12 @@
4747
| User Providers
4848
|--------------------------------------------------------------------------
4949
|
50-
| All authentication drivers have a user provider. This defines how the
50+
| All authentication guards have a user provider, which defines how the
5151
| users are actually retrieved out of your database or other storage
52-
| mechanisms used by this application to persist your user's data.
52+
| system used by the application. Typically, Eloquent is utilized.
5353
|
5454
| If you have multiple user tables or models you may configure multiple
55-
| sources which represent each model / table. These sources may then
55+
| providers to represent the model / table. These providers may then
5656
| be assigned to any extra authentication guards you have defined.
5757
|
5858
| Supported: "database", "eloquent"
@@ -62,7 +62,7 @@
6262
'providers' => [
6363
'users' => [
6464
'driver' => 'eloquent',
65-
'model' => App\Models\User::class,
65+
'model' => env('AUTH_MODEL', App\Models\User::class),
6666
],
6767

6868
// 'users' => [
@@ -76,9 +76,9 @@
7676
| Resetting Passwords
7777
|--------------------------------------------------------------------------
7878
|
79-
| You may specify multiple password reset configurations if you have more
80-
| than one user table or model in the application and you want to have
81-
| separate password reset settings based on the specific user types.
79+
| These configuration options specify the behavior of Laravel's password
80+
| reset functionality, including the table utilized for token storage
81+
| and the user provider that is invoked to actually retrieve users.
8282
|
8383
| The expiry time is the number of minutes that each reset token will be
8484
| considered valid. This security feature keeps tokens short-lived so
@@ -93,7 +93,7 @@
9393
'passwords' => [
9494
'users' => [
9595
'provider' => 'users',
96-
'table' => 'password_reset_tokens',
96+
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
9797
'expire' => 60,
9898
'throttle' => 60,
9999
],
@@ -105,11 +105,11 @@
105105
|--------------------------------------------------------------------------
106106
|
107107
| Here you may define the amount of seconds before a password confirmation
108-
| times out and the user is prompted to re-enter their password via the
108+
| window expires and users are asked to re-enter their password via the
109109
| confirmation screen. By default, the timeout lasts for three hours.
110110
|
111111
*/
112112

113-
'password_timeout' => 10800,
113+
'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),
114114

115115
];

config/broadcasting.php

-71
This file was deleted.

0 commit comments

Comments
 (0)