testing
This commit is contained in:
@@ -7,5 +7,11 @@ use Illuminate\Http\Request;
|
||||
|
||||
class DashboardController extends Controller
|
||||
{
|
||||
//
|
||||
public function __construct() {
|
||||
$this->middleware('auth');
|
||||
}
|
||||
|
||||
public function displayDashboard() {
|
||||
return view('dashboard.dashboard');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,9 +15,11 @@ Route::get('/login/eve', [EveLoginController::class, 'redirectToProvider'])->nam
|
||||
Route::get('/login/eve/callback', [EveLoginController::class, 'handleProviderCallback'])->name('login.eve.callback');
|
||||
|
||||
Route::middleware('auth')->group(function () {
|
||||
Route::get('/dashboard', function () {
|
||||
return view('dashboard');
|
||||
})->name('dashboard');
|
||||
Route::get('dashboard', 'Dashboard\DashboardController@displayDashboard')->name('dashboard');
|
||||
|
||||
// Route::get('/dashboard', function () {
|
||||
// return view('dashboard');
|
||||
// })->name('dashboard');
|
||||
|
||||
Route::post('/logout', function () {
|
||||
auth()->logout();
|
||||
|
||||
Reference in New Issue
Block a user