Browse Source

Update dependency and config

laravel_7_upgrade
Nafies Luthfi 5 years ago
parent
commit
58f7f939a8
  1. 10
      app/Exceptions/Handler.php
  2. 6
      composer.json
  3. 3205
      composer.lock
  4. 2
      config/session.php

10
app/Exceptions/Handler.php

@ -2,10 +2,10 @@
namespace App\Exceptions; namespace App\Exceptions;
use Exception;
use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Auth\AuthenticationException; use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
class Handler extends ExceptionHandler class Handler extends ExceptionHandler
{ {
@ -28,11 +28,11 @@ class Handler extends ExceptionHandler
* *
* This is a great spot to send exceptions to Sentry, Bugsnag, etc. * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
* *
* @param \Exception $exception
* @param \Throwable $exception
* *
* @return void * @return void
*/ */
public function report(Exception $exception)
public function report(Throwable $exception)
{ {
parent::report($exception); parent::report($exception);
} }
@ -41,11 +41,11 @@ class Handler extends ExceptionHandler
* Render an exception into an HTTP response. * Render an exception into an HTTP response.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \Exception $exception
* @param \Throwable $exception
* *
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function render($request, Exception $exception)
public function render($request, Throwable $exception)
{ {
// throw $exception; // throw $exception;

6
composer.json

@ -6,10 +6,10 @@
"type": "project", "type": "project",
"require": { "require": {
"php": "^7.2", "php": "^7.2",
"backup-manager/laravel": "^1.4",
"backup-manager/laravel": "^2.0",
"fideloper/proxy": "^4.0", "fideloper/proxy": "^4.0",
"laracasts/presenter": "^0.2.1", "laracasts/presenter": "^0.2.1",
"laravel/framework": "^6.0",
"laravel/framework": "^7.0",
"luthfi/formfield": "1.*", "luthfi/formfield": "1.*",
"riskihajar/terbilang": "^1.2", "riskihajar/terbilang": "^1.2",
"spatie/laravel-fractal": "^5.0" "spatie/laravel-fractal": "^5.0"
@ -21,7 +21,7 @@
"johnkary/phpunit-speedtrap": "^3.0", "johnkary/phpunit-speedtrap": "^3.0",
"luthfi/simple-crud-generator": "^1.2", "luthfi/simple-crud-generator": "^1.2",
"mockery/mockery": "^1.0", "mockery/mockery": "^1.0",
"phpunit/phpunit": "^7.0"
"phpunit/phpunit": "^8.5"
}, },
"autoload": { "autoload": {
"classmap": [ "classmap": [

3205
composer.lock
File diff suppressed because it is too large
View File

2
config/session.php

@ -148,6 +148,6 @@ return [
| |
*/ */
'secure' => false,
'secure' => env('SESSION_SECURE_COOKIE', null),
]; ];
Loading…
Cancel
Save