add faults (routes, model, navigation, seeder and migration)
All checks were successful
Build, push and deploy / builds (push) Successful in 5s
All checks were successful
Build, push and deploy / builds (push) Successful in 5s
This commit is contained in:
@ -4,6 +4,7 @@ use App\Http\Controllers\ProfileController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\Fault;
|
||||
|
||||
|
||||
Route::get('/', function () {
|
||||
@ -21,6 +22,10 @@ Route::get('/dashboard/users', function () {
|
||||
return view('dashboard.users', compact('users'));
|
||||
})->name('dashboard.users');
|
||||
|
||||
Route::get('/dashboard/faults', function () {
|
||||
$faults = \App\Models\Fault::all();
|
||||
return view('dashboard.faults', compact('faults'));
|
||||
})->name('dashboard.faults');
|
||||
|
||||
Route::middleware('auth')->group(function () {
|
||||
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
||||
|
Reference in New Issue
Block a user