Mis a jour vers Laravel 7

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2020-03-13 09:03:49 +01:00
parent 7f2131cb41
commit 2a10c53550
4 changed files with 468 additions and 474 deletions

View File

@ -2,7 +2,7 @@
namespace App\Exceptions;
use Exception;
use Throwable;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
@ -29,12 +29,12 @@ class Handler extends ExceptionHandler
/**
* Report or log an exception.
*
* @param \Exception $exception
* @param \Throwable $exception
* @return void
*
* @throws \Exception
* @throws \Throwable
*/
public function report(Exception $exception)
public function report(Throwable $exception)
{
parent::report($exception);
}
@ -43,12 +43,12 @@ class Handler extends ExceptionHandler
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $exception
* @param \Throwable $exception
* @return \Symfony\Component\HttpFoundation\Response
*
* @throws \Exception
* @throws \Throwable
*/
public function render($request, Exception $exception)
public function render($request, Throwable $exception)
{
return parent::render($request, $exception);
}

View File

@ -135,6 +135,6 @@ return array(
|
*/
'secure' => false,
'secure' => env('SESSION_SECURE_COOKIE', null),
'same_site' => 'lax',
);