Utilize Authentication Middleware Contract (#5181)

* adjust auth middleware to point to contract

* remove middleware priority
This commit is contained in:
Taylor Otwell
2019-12-18 13:44:16 -06:00
committed by GitHub
parent f589a7e897
commit 7d70bfe828
2 changed files with 13 additions and 18 deletions

View File

@@ -2,6 +2,8 @@
namespace App\Providers;
use App\Http\Middleware\Authenticate;
use Illuminate\Contracts\Auth\Middleware\AuthenticatesRequests;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;
@@ -16,6 +18,16 @@ class AuthServiceProvider extends ServiceProvider
// 'App\Model' => 'App\Policies\ModelPolicy',
];
/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->app->bind(AuthenticatesRequests::class, Authenticate::class);
}
/**
* Register any authentication / authorization services.
*