From 94e7945517387b9bef0851a506436639e4fbbb5c Mon Sep 17 00:00:00 2001 From: Can Vural Date: Wed, 9 Sep 2020 14:20:20 +0200 Subject: [PATCH 01/19] Fix docblock for variadic parameter (#5401) --- app/Http/Middleware/RedirectIfAuthenticated.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index 96beea34..fead421a 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -13,7 +13,7 @@ class RedirectIfAuthenticated * * @param \Illuminate\Http\Request $request * @param \Closure $next - * @param string[]|null ...$guards + * @param string|null ...$guards * @return mixed */ public function handle($request, Closure $next, ...$guards) From 9cbc3819f7b1c268447996d347a1733aa68e16d7 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 9 Sep 2020 21:00:17 -0500 Subject: [PATCH 02/19] add property to route service provider --- app/Providers/RouteServiceProvider.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 43c3c9fb..d31f4e25 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -19,6 +19,15 @@ class RouteServiceProvider extends ServiceProvider */ public const HOME = '/home'; + /** + * If specified, this namespace is automatically applied to your controller routes. + * + * In addition, it is set as the URL generator's root namespace. + * + * @var string + */ + protected $namespace = null; + /** * Define your route model bindings, pattern filters, etc. * From b33852ecace72791f4bc28b8dd84c108166512bf Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 10 Sep 2020 14:28:44 -0500 Subject: [PATCH 03/19] remove property --- app/Providers/RouteServiceProvider.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index d31f4e25..43c3c9fb 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -19,15 +19,6 @@ class RouteServiceProvider extends ServiceProvider */ public const HOME = '/home'; - /** - * If specified, this namespace is automatically applied to your controller routes. - * - * In addition, it is set as the URL generator's root namespace. - * - * @var string - */ - protected $namespace = null; - /** * Define your route model bindings, pattern filters, etc. * From 292a5b26a9293d82ab5a7d0bb81bba02ea71758e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 11 Sep 2020 08:29:38 -0500 Subject: [PATCH 04/19] swap route order --- app/Providers/RouteServiceProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 43c3c9fb..1356b58e 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -29,12 +29,12 @@ public function boot() $this->configureRateLimiting(); $this->routes(function () { - Route::middleware('web') - ->group(base_path('routes/web.php')); - Route::prefix('api') ->middleware('api') ->group(base_path('routes/api.php')); + + Route::middleware('web') + ->group(base_path('routes/web.php')); }); } From ca30159cabe05675fa268f49acdf93ef12480b01 Mon Sep 17 00:00:00 2001 From: Salim Djerbouh Date: Sun, 13 Sep 2020 15:17:54 +0100 Subject: [PATCH 05/19] fully qualified user model in seeder (#5406) makes it easy to just uncomment when tinkering around --- database/seeders/DatabaseSeeder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 12d803af..57b73b54 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -13,6 +13,6 @@ class DatabaseSeeder extends Seeder */ public function run() { - // User::factory(10)->create(); + // \App\Models\User::factory(10)->create(); } } From 1c4af33b8f55b47ccf9be7a416a98f36cd961802 Mon Sep 17 00:00:00 2001 From: Martin Hettiger Date: Mon, 14 Sep 2020 15:04:03 +0200 Subject: [PATCH 06/19] Fix PHPUnit bool server consts result in null (#5409) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After updating to Laravel 8 I suddenly had my test suite failing because telescope would not be disabled properly by `phpunit.xml` anymore. This changes fixed my test suite. I've also created a clean Laravel 8 project and added some tests to demonstrate the issue: https://github.com/hettiger/laravel-env-demo/commit/908d3405b84e769c12d296e98bef1ca567127254 Maybe this needs to be addressed in PHPUnit. However I'm adding this workaround here because it's a viable solution IMHO. Maybe should add a note on this in the docs and be done with it…? --- phpunit.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpunit.xml b/phpunit.xml index 4ae4d979..8bc0de4e 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -26,6 +26,6 @@ - + From 7cd15dbad654dde2ddb598a45511ff65800717ce Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Mon, 14 Sep 2020 14:18:04 +0100 Subject: [PATCH 07/19] Avoid deprecated StyleCI fixer name (#5410) --- .styleci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.styleci.yml b/.styleci.yml index 1db61d96..9231873a 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -1,7 +1,7 @@ php: preset: laravel disabled: - - unused_use + - no_unused_imports finder: not-name: - index.php From c6c41f11b8ea3065f035fbb6a6f570b7bfba0037 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Mon, 14 Sep 2020 17:16:11 +0100 Subject: [PATCH 08/19] Revert "Fix PHPUnit bool server consts result in null (#5409)" (#5411) This reverts commit 1c4af33b8f55b47ccf9be7a416a98f36cd961802. --- phpunit.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpunit.xml b/phpunit.xml index 8bc0de4e..4ae4d979 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -26,6 +26,6 @@ - + From c62a7c13bfa3840041ae01933d56b24e5ad2503d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Gabry=C5=9B?= Date: Tue, 15 Sep 2020 06:35:19 +0200 Subject: [PATCH 09/19] Update model path in AuthServiceProvider's policies. Due to the change of default model location in Laravel 8.x from /App to /App/Models, the initial policy comment shoud also reflect this change. --- app/Providers/AuthServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index 30490683..ce744916 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -13,7 +13,7 @@ class AuthServiceProvider extends ServiceProvider * @var array */ protected $policies = [ - // 'App\Model' => 'App\Policies\ModelPolicy', + // 'App\Models\Model' => 'App\Policies\ModelPolicy', ]; /** From 69d0c504e3ff01e0fd219e02ebac9b1c22151c2a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 20 Sep 2020 11:39:57 -0500 Subject: [PATCH 10/19] add commented code --- app/Providers/RouteServiceProvider.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 1356b58e..3c5cca45 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -19,6 +19,13 @@ class RouteServiceProvider extends ServiceProvider */ public const HOME = '/home'; + /** + * The controller namespace for the application. + * + * @var string|null + */ + // protected $namespace = 'App\\Http\\Controllers'; + /** * Define your route model bindings, pattern filters, etc. * From f1a51f7c622783d98bf3916fc56c86755feb5426 Mon Sep 17 00:00:00 2001 From: Alex Mayer Date: Sun, 20 Sep 2020 21:35:48 -0400 Subject: [PATCH 11/19] [8.x] Update User Model to Match Jetstream Formatting (#5422) * Update User Model to Match Jetstream Formatting * Update User.php Co-authored-by: Taylor Otwell --- app/Models/User.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index 43c7ab1f..804799ba 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -17,7 +17,9 @@ class User extends Authenticatable * @var array */ protected $fillable = [ - 'name', 'email', 'password', + 'name', + 'email', + 'password', ]; /** @@ -26,7 +28,8 @@ class User extends Authenticatable * @var array */ protected $hidden = [ - 'password', 'remember_token', + 'password', + 'remember_token', ]; /** From 4eeb29ee12e980969e8d9f2a1cd465e514a0f76e Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Mon, 21 Sep 2020 17:59:16 +0200 Subject: [PATCH 12/19] Update changelog --- CHANGELOG.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17e94ebd..da95f00a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v7.25.0...master) +## [Unreleased](https://github.com/laravel/laravel/compare/v7.28.0...7.x) + + +## [v7.28.0 (2020-09-08)](https://github.com/laravel/laravel/compare/v7.25.0...v7.28.0) + +Nothing specific. ## [v7.25.0 (2020-08-11)](https://github.com/laravel/laravel/compare/v7.12.0...v7.25.0) From d3353c9e9a06a044ec573cbf8b73a416e2f2a2ba Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Tue, 22 Sep 2020 11:23:40 -0300 Subject: [PATCH 13/19] Fix route when uncomment $namespace (#5424) --- app/Providers/RouteServiceProvider.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 3c5cca45..a80fcf71 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -38,9 +38,11 @@ public function boot() $this->routes(function () { Route::prefix('api') ->middleware('api') + ->namespace($this->namespace) ->group(base_path('routes/api.php')); Route::middleware('web') + ->namespace($this->namespace) ->group(base_path('routes/web.php')); }); } From a6ca5778391b150102637459ac3b2a42d78d495b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 22 Sep 2020 14:17:27 -0500 Subject: [PATCH 14/19] add comment --- app/Providers/RouteServiceProvider.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index a80fcf71..19664568 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -22,6 +22,8 @@ class RouteServiceProvider extends ServiceProvider /** * The controller namespace for the application. * + * When present, controller route declarations will automatically be prefixed with this namespace. + * * @var string|null */ // protected $namespace = 'App\\Http\\Controllers'; From 38bc9119eb369eed4d32adbc4132788177712b15 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Fri, 2 Oct 2020 08:31:13 -0500 Subject: [PATCH 15/19] type hint the middleware Request (#5438) stemming from https://github.com/laravel/framework/pull/34224 --- app/Http/Middleware/RedirectIfAuthenticated.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index fead421a..362b48b0 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -4,6 +4,7 @@ use App\Providers\RouteServiceProvider; use Closure; +use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class RedirectIfAuthenticated @@ -16,7 +17,7 @@ class RedirectIfAuthenticated * @param string|null ...$guards * @return mixed */ - public function handle($request, Closure $next, ...$guards) + public function handle(Request $request, Closure $next, ...$guards) { $guards = empty($guards) ? [null] : $guards; From 7b958b5d15d2cacb8cc5dcc80d1171c51622e5e9 Mon Sep 17 00:00:00 2001 From: Pataar Date: Mon, 5 Oct 2020 14:45:05 +0200 Subject: [PATCH 16/19] [8.x] Update the badges to use shields.io (#5441) * Update the badges to use shields.io Shields.io works a lot better than the old pugx.org. * Target `/framework` instead of `/laravel` --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f3decb12..2f7ddcc6 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@

Build Status -Total Downloads -Latest Stable Version -License +Total Downloads +Latest Stable Version +License

## About Laravel From f12fd984142093287d4c1218b9f4581d977ddb52 Mon Sep 17 00:00:00 2001 From: Norgul Date: Mon, 5 Oct 2020 22:11:23 +0200 Subject: [PATCH 17/19] Update logging.php (#5442) Added `LOG_LEVEL` env variable --- config/logging.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/logging.php b/config/logging.php index 088c204e..6aa77fe2 100644 --- a/config/logging.php +++ b/config/logging.php @@ -44,13 +44,13 @@ 'single' => [ 'driver' => 'single', 'path' => storage_path('logs/laravel.log'), - 'level' => 'debug', + 'level' => env('LOG_LEVEL', 'debug'), ], 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), - 'level' => 'debug', + 'level' => env('LOG_LEVEL', 'debug'), 'days' => 14, ], @@ -59,12 +59,12 @@ 'url' => env('LOG_SLACK_WEBHOOK_URL'), 'username' => 'Laravel Log', 'emoji' => ':boom:', - 'level' => 'critical', + 'level' => env('LOG_LEVEL', 'critical'), ], 'papertrail' => [ 'driver' => 'monolog', - 'level' => 'debug', + 'level' => env('LOG_LEVEL', 'debug'), 'handler' => SyslogUdpHandler::class, 'handler_with' => [ 'host' => env('PAPERTRAIL_URL'), @@ -83,12 +83,12 @@ 'syslog' => [ 'driver' => 'syslog', - 'level' => 'debug', + 'level' => env('LOG_LEVEL', 'debug'), ], 'errorlog' => [ 'driver' => 'errorlog', - 'level' => 'debug', + 'level' => env('LOG_LEVEL', 'debug'), ], 'null' => [ From f5161080d4a62e5b88909d8f8e5b407c76750b2b Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 6 Oct 2020 18:07:58 +0200 Subject: [PATCH 18/19] Update CHANGELOG.md --- CHANGELOG.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 401dc26d..543e0262 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,27 @@ # Release Notes ## [Unreleased](https://github.com/laravel/laravel/compare/v8.0.1...master) +## [v8.0.3 (2020-09-22)](https://github.com/laravel/laravel/compare/v8.0.2...v8.0.3) + +### Changed +- Add comment ([a6ca577](https://github.com/laravel/laravel/commit/a6ca5778391b150102637459ac3b2a42d78d495b)) + + +## [v8.0.2 (2020-09-22)](https://github.com/laravel/laravel/compare/v8.0.1...v8.0.2) + +### Changed +- Fully qualified user model in seeder ([#5406](https://github.com/laravel/laravel/pull/5406)) +- Update model path in `AuthServiceProvider`'s policies ([#5412](https://github.com/laravel/laravel/pull/5412)) +- Add commented code ([69d0c50](https://github.com/laravel/laravel/commit/69d0c504e3ff01e0fd219e02ebac9b1c22151c2a)) + +### Fixed +- Swap route order ([292a5b2](https://github.com/laravel/laravel/commit/292a5b26a9293d82ab5a7d0bb81bba02ea71758e)) +- Fix route when uncomment $namespace ([#5424](https://github.com/laravel/laravel/pull/5424)) + +### Removed +- Removed `$namespace` property ([b33852e](https://github.com/laravel/laravel/commit/b33852ecace72791f4bc28b8dd84c108166512bf)) + + ## [v8.0.1 (2020-09-09)](https://github.com/laravel/laravel/compare/v8.0.0...v8.0.1) ### Changed From c66546e75fcbf208d2884b5ac7a3a858137753a3 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 6 Oct 2020 18:11:27 +0200 Subject: [PATCH 19/19] Update CHANGELOG.md --- CHANGELOG.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 543e0262..658af6c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v8.0.1...master) +## [Unreleased](https://github.com/laravel/laravel/compare/v8.1.0...master) + + +## [v8.1.0 (2020-10-06)](https://github.com/laravel/laravel/compare/v8.0.3...v8.1.0) + +### Added +- Added `LOG_LEVEL` env variable ([#5442](https://github.com/laravel/laravel/pull/5442)) + +### Changed +- Type hint the middleware Request ([#5438](https://github.com/laravel/laravel/pull/5438)) ## [v8.0.3 (2020-09-22)](https://github.com/laravel/laravel/compare/v8.0.2...v8.0.3)