Skip to content

Commit b7adcb7

Browse files
committed
update to Laravel 8
1 parent 5ddb86c commit b7adcb7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+64569
-54314
lines changed

.env.example

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,38 @@ APP_DEBUG=true
55
APP_URL=http://localhost
66

77
LOG_CHANNEL=stack
8+
LOG_LEVEL=debug
89

910
DB_CONNECTION=mysql
1011
DB_HOST=127.0.0.1
1112
DB_PORT=3306
12-
DB_DATABASE=homestead
13-
DB_USERNAME=homestead
14-
DB_PASSWORD=secret
13+
DB_DATABASE=laravel
14+
DB_USERNAME=root
15+
DB_PASSWORD=
1516

1617
BROADCAST_DRIVER=log
1718
CACHE_DRIVER=file
19+
QUEUE_CONNECTION=sync
1820
SESSION_DRIVER=file
1921
SESSION_LIFETIME=120
20-
QUEUE_DRIVER=sync
2122

2223
REDIS_HOST=127.0.0.1
2324
REDIS_PASSWORD=null
2425
REDIS_PORT=6379
2526

26-
MAIL_DRIVER=smtp
27+
MAIL_MAILER=smtp
2728
MAIL_HOST=smtp.mailtrap.io
2829
MAIL_PORT=2525
2930
MAIL_USERNAME=null
3031
MAIL_PASSWORD=null
3132
MAIL_ENCRYPTION=null
33+
MAIL_FROM_ADDRESS=null
34+
MAIL_FROM_NAME="${APP_NAME}"
35+
36+
AWS_ACCESS_KEY_ID=
37+
AWS_SECRET_ACCESS_KEY=
38+
AWS_DEFAULT_REGION=us-east-1
39+
AWS_BUCKET=
3240

3341
PUSHER_APP_ID=
3442
PUSHER_APP_KEY=

.gitignore

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
/public/storage
44
/storage/*.key
55
/vendor
6-
/.idea
7-
/.vagrant
8-
/.discovery
6+
.env
7+
.env.backup
8+
.phpunit.result.cache
99
Homestead.json
1010
Homestead.yaml
1111
npm-debug.log
12-
.env
12+
yarn-error.log
13+
/.idea
14+
/.vagrant
15+
/.discovery
16+
/public/css
17+
/public/js
18+
/public/mix-manifest.json

app/Console/Kernel.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ class Kernel extends ConsoleKernel
2424
*/
2525
protected function schedule(Schedule $schedule)
2626
{
27-
// $schedule->command('inspire')
28-
// ->hourly();
27+
// $schedule->command('inspire')->hourly();
2928
}
3029

3130
/**

app/Exceptions/Handler.php

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace App\Exceptions;
44

5-
use Exception;
65
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
6+
use Throwable;
77

88
class Handler extends ExceptionHandler
99
{
@@ -27,27 +27,14 @@ class Handler extends ExceptionHandler
2727
];
2828

2929
/**
30-
* Report or log an exception.
30+
* Register the exception handling callbacks for the application.
3131
*
32-
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
33-
*
34-
* @param \Exception $exception
3532
* @return void
3633
*/
37-
public function report(Exception $exception)
38-
{
39-
parent::report($exception);
40-
}
41-
42-
/**
43-
* Render an exception into an HTTP response.
44-
*
45-
* @param \Illuminate\Http\Request $request
46-
* @param \Exception $exception
47-
* @return \Illuminate\Http\Response
48-
*/
49-
public function render($request, Exception $exception)
34+
public function register()
5035
{
51-
return parent::render($request, $exception);
36+
$this->reportable(function (Throwable $e) {
37+
//
38+
});
5239
}
5340
}

app/Http/Controllers/Auth/ForgotPasswordController.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

app/Http/Controllers/Auth/LoginController.php

Lines changed: 0 additions & 39 deletions
This file was deleted.

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 0 additions & 71 deletions
This file was deleted.

app/Http/Controllers/Auth/ResetPasswordController.php

Lines changed: 0 additions & 39 deletions
This file was deleted.

app/Http/Controllers/Auth/VerificationController.php

Lines changed: 0 additions & 42 deletions
This file was deleted.

app/Http/Controllers/Controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace App\Http\Controllers;
44

5+
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
56
use Illuminate\Foundation\Bus\DispatchesJobs;
6-
use Illuminate\Routing\Controller as BaseController;
77
use Illuminate\Foundation\Validation\ValidatesRequests;
8-
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
8+
use Illuminate\Routing\Controller as BaseController;
99

1010
class Controller extends BaseController
1111
{

app/Http/Kernel.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ class Kernel extends HttpKernel
1414
* @var array
1515
*/
1616
protected $middleware = [
17-
\App\Http\Middleware\CheckForMaintenanceMode::class,
17+
// \App\Http\Middleware\TrustHosts::class,
18+
\App\Http\Middleware\TrustProxies::class,
19+
\Fruitcake\Cors\HandleCors::class,
20+
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
1821
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
1922
\App\Http\Middleware\TrimStrings::class,
2023
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
21-
\App\Http\Middleware\TrustProxies::class,
2224
];
2325

2426
/**
@@ -38,8 +40,8 @@ class Kernel extends HttpKernel
3840
],
3941

4042
'api' => [
41-
'throttle:60,1',
42-
'bindings',
43+
'throttle:api',
44+
\Illuminate\Routing\Middleware\SubstituteBindings::class,
4345
],
4446
];
4547

@@ -53,10 +55,10 @@ class Kernel extends HttpKernel
5355
protected $routeMiddleware = [
5456
'auth' => \App\Http\Middleware\Authenticate::class,
5557
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
56-
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
5758
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
5859
'can' => \Illuminate\Auth\Middleware\Authorize::class,
5960
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
61+
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
6062
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
6163
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
6264
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,

0 commit comments

Comments
 (0)