We’re going to be using Auth0 for authentication. Setting up the built-in authentication with Laravel is pretty straightforward, but limited. With Auth0, you’ll have access to an easy-to-use dashboard, the ability to integrate social identity providers, two-factor authentication, passwordless login, and more. And luckily, it’s just as easy to integrate with your Laravel application! Let’s check it out.
Route::get('/', function () { return redirect('/login'); })->middleware('auth');
require __DIR__.'/auth.php';