Update Dashboard Survey Petani
This commit is contained in:
+3
-1
@@ -16,7 +16,7 @@ Route::get('/', function() {
|
||||
$userRole = auth()->check() ? (auth()->user()->role instanceof \App\Enums\Role ? auth()->user()->role->value : auth()->user()->role) : null;
|
||||
|
||||
if ($userRole == 'fasilitator') {
|
||||
return redirect()->route('dashboard.survey');
|
||||
return redirect()->route('dashboard.survey-petani');
|
||||
}
|
||||
return redirect()->route('dashboard.produktivitas');
|
||||
})->name('home');
|
||||
@@ -24,6 +24,8 @@ Route::get('/', function() {
|
||||
Route::middleware('auth')
|
||||
->group(function () {
|
||||
|
||||
Route::get('/dashboard/survey-petani', [App\Http\Controllers\Web\Dashboard\SurveyPetaniController::class, 'index'])->name('dashboard.survey-petani');
|
||||
|
||||
Route::get('/tekad', function () {
|
||||
return view('dashboard.dashboard');
|
||||
})->name('dashboard.survey');
|
||||
|
||||
Reference in New Issue
Block a user