INITIAL COMMIT - в эту ветку складываю скрипты, необходимость которых сомнительна для нового проекта ларавель. Можно добавить их скопом в новый проект, потом попробовать удалять и смотреть будет что-то ломаться или нет

This commit is contained in:
vasya
2026-03-22 19:53:13 +03:00
parent e927910fda
commit 9766a1afad
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
class Handler extends ExceptionHandler
{
/**
* The list of the inputs that are never flashed to the session on validation exceptions.
*
* @var array<int, string>
*/
protected $dontFlash = [
'current_password',
'password',
'password_confirmation',
];
/**
* Register the exception handling callbacks for the application.
*/
public function register(): void
{
$this->reportable(function (Throwable $e) {
//
});
}
}