Skip to content

Commit 387c728

Browse files
committed
Streamline config files
1 parent d5c96bc commit 387c728

16 files changed

+23
-1348
lines changed

config/.gitkeep

Whitespace-only changes.

config/app.php

Lines changed: 0 additions & 165 deletions
Original file line numberDiff line numberDiff line change
@@ -5,156 +5,6 @@
55

66
return [
77

8-
/*
9-
|--------------------------------------------------------------------------
10-
| Application Name
11-
|--------------------------------------------------------------------------
12-
|
13-
| This value is the name of your application. This value is used when the
14-
| framework needs to place the application's name in a notification or
15-
| any other location as required by the application or its packages.
16-
|
17-
*/
18-
19-
'name' => env('APP_NAME', 'Laravel'),
20-
21-
/*
22-
|--------------------------------------------------------------------------
23-
| Application Environment
24-
|--------------------------------------------------------------------------
25-
|
26-
| This value determines the "environment" your application is currently
27-
| running in. This may determine how you prefer to configure various
28-
| services the application utilizes. Set this in your ".env" file.
29-
|
30-
*/
31-
32-
'env' => env('APP_ENV', 'production'),
33-
34-
/*
35-
|--------------------------------------------------------------------------
36-
| Application Debug Mode
37-
|--------------------------------------------------------------------------
38-
|
39-
| When your application is in debug mode, detailed error messages with
40-
| stack traces will be shown on every error that occurs within your
41-
| application. If disabled, a simple generic error page is shown.
42-
|
43-
*/
44-
45-
'debug' => env('APP_DEBUG', false),
46-
47-
/*
48-
|--------------------------------------------------------------------------
49-
| Application URL
50-
|--------------------------------------------------------------------------
51-
|
52-
| This URL is used by the console to properly generate URLs when using
53-
| 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.
55-
|
56-
*/
57-
58-
'url' => env('APP_URL', 'http://localhost'),
59-
60-
'asset_url' => env('ASSET_URL', null),
61-
62-
/*
63-
|--------------------------------------------------------------------------
64-
| Application Timezone
65-
|--------------------------------------------------------------------------
66-
|
67-
| 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.
70-
|
71-
*/
72-
73-
'timezone' => 'UTC',
74-
75-
/*
76-
|--------------------------------------------------------------------------
77-
| Application Locale Configuration
78-
|--------------------------------------------------------------------------
79-
|
80-
| 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.
96-
|
97-
*/
98-
99-
'fallback_locale' => 'en',
100-
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-
*/
111-
112-
'faker_locale' => 'en_US',
113-
114-
/*
115-
|--------------------------------------------------------------------------
116-
| Encryption Key
117-
|--------------------------------------------------------------------------
118-
|
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!
122-
|
123-
*/
124-
125-
'key' => env('APP_KEY'),
126-
127-
'cipher' => 'AES-256-CBC',
128-
129-
/*
130-
|--------------------------------------------------------------------------
131-
| Maintenance Mode Driver
132-
|--------------------------------------------------------------------------
133-
|
134-
| These configuration options determine the driver used to determine and
135-
| manage Laravel's "maintenance mode" status. The "cache" driver will
136-
| allow maintenance mode to be controlled across multiple machines.
137-
|
138-
| Supported drivers: "file", "cache"
139-
|
140-
*/
141-
142-
'maintenance' => [
143-
'driver' => 'file',
144-
// 'store' => 'redis',
145-
],
146-
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-
1588
'providers' => ServiceProvider::defaultProviders()->merge([
1599
/*
16010
* Application Service Providers...
@@ -166,19 +16,4 @@
16616
App\Markdown\MarkdownServiceProvider::class,
16717
])->toArray(),
16818

169-
/*
170-
|--------------------------------------------------------------------------
171-
| Class Aliases
172-
|--------------------------------------------------------------------------
173-
|
174-
| This array of class aliases will be registered when this application
175-
| is started. However, feel free to register as many as you wish as
176-
| the aliases are "lazy" loaded so they don't hinder performance.
177-
|
178-
*/
179-
180-
'aliases' => Facade::defaultAliases()->merge([
181-
// ...
182-
])->toArray(),
183-
18419
];

config/auth.php

Lines changed: 0 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -2,116 +2,12 @@
22

33
return [
44

5-
/*
6-
|--------------------------------------------------------------------------
7-
| Authentication Defaults
8-
|--------------------------------------------------------------------------
9-
|
10-
| This option controls the default authentication "guard" and password
11-
| reset options for your application. You may change these defaults
12-
| as required, but they're a perfect start for most applications.
13-
|
14-
*/
15-
16-
'defaults' => [
17-
'guard' => 'web',
18-
'passwords' => 'users',
19-
],
20-
21-
/*
22-
|--------------------------------------------------------------------------
23-
| Authentication Guards
24-
|--------------------------------------------------------------------------
25-
|
26-
| Next, you may define every authentication guard for your application.
27-
| Of course, a great default configuration has been defined for you
28-
| here which uses session storage and the Eloquent user provider.
29-
|
30-
| All authentication drivers have a user provider. This defines how the
31-
| users are actually retrieved out of your database or other storage
32-
| mechanisms used by this application to persist your user's data.
33-
|
34-
| Supported: "session"
35-
|
36-
*/
37-
385
'guards' => [
39-
'web' => [
40-
'driver' => 'session',
41-
'provider' => 'users',
42-
],
43-
446
'api' => [
457
'driver' => 'token',
468
'provider' => 'users',
479
'hash' => false,
4810
],
4911
],
5012

51-
/*
52-
|--------------------------------------------------------------------------
53-
| User Providers
54-
|--------------------------------------------------------------------------
55-
|
56-
| All authentication drivers have a user provider. This defines how the
57-
| users are actually retrieved out of your database or other storage
58-
| mechanisms used by this application to persist your user's data.
59-
|
60-
| If you have multiple user tables or models you may configure multiple
61-
| sources which represent each model / table. These sources may then
62-
| be assigned to any extra authentication guards you have defined.
63-
|
64-
| Supported: "database", "eloquent"
65-
|
66-
*/
67-
68-
'providers' => [
69-
'users' => [
70-
'driver' => 'eloquent',
71-
'model' => App\Models\User::class,
72-
],
73-
74-
// 'users' => [
75-
// 'driver' => 'database',
76-
// 'table' => 'users',
77-
// ],
78-
],
79-
80-
/*
81-
|--------------------------------------------------------------------------
82-
| Resetting Passwords
83-
|--------------------------------------------------------------------------
84-
|
85-
| You may specify multiple password reset configurations if you have more
86-
| than one user table or model in the application and you want to have
87-
| separate password reset settings based on the specific user types.
88-
|
89-
| The expiry time is the number of minutes that each reset token will be
90-
| considered valid. This security feature keeps tokens short-lived so
91-
| they have less time to be guessed. You may change this as needed.
92-
|
93-
*/
94-
95-
'passwords' => [
96-
'users' => [
97-
'provider' => 'users',
98-
'table' => 'password_resets',
99-
'expire' => 60,
100-
'throttle' => 60,
101-
],
102-
],
103-
104-
/*
105-
|--------------------------------------------------------------------------
106-
| Password Confirmation Timeout
107-
|--------------------------------------------------------------------------
108-
|
109-
| Here you may define the amount of seconds before a password confirmation
110-
| times out and the user is prompted to re-enter their password via the
111-
| confirmation screen. By default, the timeout lasts for three hours.
112-
|
113-
*/
114-
115-
'password_timeout' => 10800,
116-
11713
];

config/broadcasting.php

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)