Skip to content

Commit 31c0fa5

Browse files
author
Curtis Delicata
committed
Fix
1 parent 3e45be2 commit 31c0fa5

File tree

2 files changed

+25
-119
lines changed

2 files changed

+25
-119
lines changed

app/Exceptions/Handler.php

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,12 @@
33
namespace App\Exceptions;
44

55
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
6-
use Illuminate\Support\Facades\Log;
76
use Throwable;
87

98
class Handler extends ExceptionHandler
109
{
1110
/**
12-
* A list of exception types with their corresponding custom log levels.
13-
*
14-
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
15-
*/
16-
protected $levels = [
17-
//
18-
];
19-
20-
/**
21-
* A list of the exception types that are not reported.
22-
*
23-
* @var array<int, class-string<\Throwable>>
24-
*/
25-
protected $dontReport = [
26-
//
27-
];
28-
29-
/**
30-
* A list of the inputs that are never flashed to the session on validation exceptions.
11+
* The list of the inputs that are never flashed to the session on validation exceptions.
3112
*
3213
* @var array<int, string>
3314
*/
@@ -40,16 +21,10 @@ class Handler extends ExceptionHandler
4021
/**
4122
* Register the exception handling callbacks for the application.
4223
*/
43-
#[\Override]
4424
public function register(): void
4525
{
46-
$this->reportable(function (Throwable $e): void {
47-
Log::error($e->getMessage(), [
48-
'exception' => get_class($e),
49-
'file' => $e->getFile(),
50-
'line' => $e->getLine(),
51-
'trace' => $e->getTraceAsString()
52-
]);
26+
$this->reportable(function (Throwable $e) {
27+
//
5328
});
5429
}
5530
}

config/app.php

Lines changed: 22 additions & 91 deletions
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,22 +48,20 @@
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

@@ -78,53 +73,37 @@
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,56 +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-
// JoelButcher\Socialstream\Filament\SocialstreamPanelProvider::class,
163-
164-
/*
165-
* Application Service Providers...
166-
*/
167-
App\Providers\AppServiceProvider::class,
168-
App\Providers\AuthServiceProvider::class,
169-
// App\Providers\BroadcastServiceProvider::class,
170-
App\Providers\EventServiceProvider::class,
171-
App\Providers\Filament\AdminPanelProvider::class,
172-
App\Providers\Filament\AppPanelProvider::class,
173-
App\Providers\RouteServiceProvider::class,
174-
175-
App\Providers\TeamServiceProvider::class,
176-
App\Providers\JetstreamServiceProvider::class,
177-
App\Providers\FortifyServiceProvider::class,
178-
])->toArray(),
179-
180-
/*
181-
|--------------------------------------------------------------------------
182-
| Class Aliases
183-
|--------------------------------------------------------------------------
184-
|
185-
| This array of class aliases will be registered when this application
186-
| is started. However, feel free to register as many as you wish as
187-
| the aliases are "lazy" loaded so they don't hinder performance.
188-
|
189-
*/
190-
191-
'aliases' => Facade::defaultAliases()->merge([
192-
// 'Example' => App\Facades\Example::class,
193-
])->toArray(),
194-
195126
];

0 commit comments

Comments
 (0)