testing
This commit is contained in:
@@ -52,4 +52,20 @@ class User extends Authenticatable
|
||||
{
|
||||
$this->increment('privileges_version');
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return $this->character_name;
|
||||
}
|
||||
|
||||
public function getId() {
|
||||
return $this->character_id;
|
||||
}
|
||||
|
||||
public function getRole() {
|
||||
$role = UserRole::where([
|
||||
'character_id' => $this->character_id,
|
||||
])->first();
|
||||
|
||||
return $role->role;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ Route::middleware('auth')->group(function () {
|
||||
Route::get('/dashboard/guest', [DashboardController::class, 'displayGuest'])->name('dashboard.guest')->withoutMiddleware(RequireRole::class)
|
||||
->withoutMiddleware(RequirePermission::class);
|
||||
} else {
|
||||
Route::get('/dashboard', [DashboardController::class, 'displayUser'])->name('dashboard');
|
||||
Route::get('/dashboard/user', [DashboardController::class, 'displayUser'])->name('dashboard');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user