Skip to content

Commit cecf78e

Browse files
committed
Streamline config files
1 parent e90609b commit cecf78e

15 files changed

+5
-1345
lines changed

config/.gitkeep

Whitespace-only changes.

config/app.php

Lines changed: 2 additions & 190 deletions
Original file line numberDiff line numberDiff line change
@@ -1,186 +1,14 @@
11
<?php
22

3+
use Illuminate\Support\ServiceProvider;
34
use Illuminate\Support\Facades\Facade;
45

56
return [
67

7-
/*
8-
|--------------------------------------------------------------------------
9-
| Application Name
10-
|--------------------------------------------------------------------------
11-
|
12-
| This value is the name of your application. This value is used when the
13-
| framework needs to place the application's name in a notification or
14-
| any other location as required by the application or its packages.
15-
|
16-
*/
17-
18-
'name' => env('APP_NAME', 'Laravel'),
19-
20-
/*
21-
|--------------------------------------------------------------------------
22-
| Application Environment
23-
|--------------------------------------------------------------------------
24-
|
25-
| This value determines the "environment" your application is currently
26-
| running in. This may determine how you prefer to configure various
27-
| services the application utilizes. Set this in your ".env" file.
28-
|
29-
*/
30-
31-
'env' => env('APP_ENV', 'production'),
32-
33-
/*
34-
|--------------------------------------------------------------------------
35-
| Application Debug Mode
36-
|--------------------------------------------------------------------------
37-
|
38-
| When your application is in debug mode, detailed error messages with
39-
| stack traces will be shown on every error that occurs within your
40-
| application. If disabled, a simple generic error page is shown.
41-
|
42-
*/
43-
44-
'debug' => (bool) env('APP_DEBUG', false),
45-
46-
/*
47-
|--------------------------------------------------------------------------
48-
| Application URL
49-
|--------------------------------------------------------------------------
50-
|
51-
| This URL is used by the console to properly generate URLs when using
52-
| the Artisan command line tool. You should set this to the root of
53-
| your application so that it is used when running Artisan tasks.
54-
|
55-
*/
56-
57-
'url' => env('APP_URL', 'http://localhost'),
58-
59-
'asset_url' => env('ASSET_URL', null),
60-
61-
/*
62-
|--------------------------------------------------------------------------
63-
| Application Timezone
64-
|--------------------------------------------------------------------------
65-
|
66-
| Here you may specify the default timezone for your application, which
67-
| will be used by the PHP date and date-time functions. We have gone
68-
| ahead and set this to a sensible default for you out of the box.
69-
|
70-
*/
71-
72-
'timezone' => 'UTC',
73-
74-
/*
75-
|--------------------------------------------------------------------------
76-
| Application Locale Configuration
77-
|--------------------------------------------------------------------------
78-
|
79-
| The application locale determines the default locale that will be used
80-
| by the translation service provider. You are free to set this value
81-
| to any of the locales which will be supported by the application.
82-
|
83-
*/
84-
85-
'locale' => 'en',
86-
87-
/*
88-
|--------------------------------------------------------------------------
89-
| Application Fallback Locale
90-
|--------------------------------------------------------------------------
91-
|
92-
| The fallback locale determines the locale to use when the current one
93-
| is not available. You may change the value to correspond to any of
94-
| the language folders that are provided through your application.
95-
|
96-
*/
97-
98-
'fallback_locale' => 'en',
99-
100-
/*
101-
|--------------------------------------------------------------------------
102-
| Faker Locale
103-
|--------------------------------------------------------------------------
104-
|
105-
| This locale will be used by the Faker PHP library when generating fake
106-
| data for your database seeds. For example, this will be used to get
107-
| localized telephone numbers, street address information and more.
108-
|
109-
*/
110-
111-
'faker_locale' => 'en_US',
112-
113-
/*
114-
|--------------------------------------------------------------------------
115-
| Encryption Key
116-
|--------------------------------------------------------------------------
117-
|
118-
| This key is used by the Illuminate encrypter service and should be set
119-
| to a random, 32 character string, otherwise these encrypted strings
120-
| will not be safe. Please do this before deploying an application!
121-
|
122-
*/
123-
124-
'key' => env('APP_KEY'),
125-
126-
'cipher' => 'AES-256-CBC',
127-
128-
/*
129-
|--------------------------------------------------------------------------
130-
| Maintenance Mode Driver
131-
|--------------------------------------------------------------------------
132-
|
133-
| These configuration options determine the driver used to determine and
134-
| manage Laravel's "maintenance mode" status. The "cache" driver will
135-
| allow maintenance mode to be controlled across multiple machines.
136-
|
137-
| Supported drivers: "file", "cache"
138-
|
139-
*/
140-
141-
'maintenance' => [
142-
'driver' => 'file',
143-
// 'store' => 'redis',
144-
],
145-
146-
/*
147-
|--------------------------------------------------------------------------
148-
| Autoloaded Service Providers
149-
|--------------------------------------------------------------------------
150-
|
151-
| The service providers listed here will be automatically loaded on the
152-
| request to your application. Feel free to add your own services to
153-
| this array to grant expanded functionality to your applications.
154-
|
155-
*/
156-
157-
'providers' => [
158-
8+
'providers' => ServiceProvider::defaultProviders()->merge([
1599
/*
16010
* Laravel Framework Service Providers...
16111
*/
162-
Illuminate\Auth\AuthServiceProvider::class,
163-
Illuminate\Broadcasting\BroadcastServiceProvider::class,
164-
Illuminate\Bus\BusServiceProvider::class,
165-
Illuminate\Cache\CacheServiceProvider::class,
166-
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
167-
Illuminate\Cookie\CookieServiceProvider::class,
168-
Illuminate\Database\DatabaseServiceProvider::class,
169-
Illuminate\Encryption\EncryptionServiceProvider::class,
170-
Illuminate\Filesystem\FilesystemServiceProvider::class,
171-
Illuminate\Foundation\Providers\FoundationServiceProvider::class,
172-
Illuminate\Hashing\HashServiceProvider::class,
173-
Illuminate\Mail\MailServiceProvider::class,
174-
Illuminate\Notifications\NotificationServiceProvider::class,
175-
Illuminate\Pagination\PaginationServiceProvider::class,
176-
Illuminate\Pipeline\PipelineServiceProvider::class,
177-
Illuminate\Queue\QueueServiceProvider::class,
178-
Illuminate\Redis\RedisServiceProvider::class,
179-
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
180-
Illuminate\Session\SessionServiceProvider::class,
181-
Illuminate\Translation\TranslationServiceProvider::class,
182-
Illuminate\Validation\ValidationServiceProvider::class,
183-
Illuminate\View\ViewServiceProvider::class,
18412

18513
/*
18614
* Package Service Providers...
@@ -194,22 +22,6 @@
19422
// App\Providers\BroadcastServiceProvider::class,
19523
App\Providers\EventServiceProvider::class,
19624
App\Providers\RouteServiceProvider::class,
197-
198-
],
199-
200-
/*
201-
|--------------------------------------------------------------------------
202-
| Class Aliases
203-
|--------------------------------------------------------------------------
204-
|
205-
| This array of class aliases will be registered when this application
206-
| is started. However, feel free to register as many as you wish as
207-
| the aliases are "lazy" loaded so they don't hinder performance.
208-
|
209-
*/
210-
211-
'aliases' => Facade::defaultAliases()->merge([
212-
// ...
21325
])->toArray(),
21426

21527
];

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 expire 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 & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)