0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Laravel8 Auth0のRoute/web.php

Posted at

#Route/web.php
Laravelのバージョンが8になってRouteの書き方変わったので、Auth0のRouteの書き方も当然変わった。
公式には過去のバージョンの書き方しかないっぽいので下記の通り書けば動く。


use App\Http\Controllers\Auth\Auth0IndexController;
use Auth0\Login\Auth0Controller;

Route::get( '/auth0/callback', [Auth0Controller::class, 'callback'])->name( 'auth0-callback' );
Route::get('/login', [Auth0IndexController::class, 'login'] )->name( 'login' );
Route::get('/logout', [Auth0IndexController::class, 'logout'] )->name( 'logout' );

にしてもLaravel8になってmoodelの場所も変わったし、Routeの書き方も変わったし回収大変かもね・・・。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?