reinstalled

This commit is contained in:
2025-05-06 23:15:56 +05:45
parent 96e5efeb1b
commit 9392d34c76
66 changed files with 2145 additions and 1096 deletions

View File

@ -12,10 +12,13 @@ Route::get('/dashboard', function () {
})->middleware(['auth', 'verified'])->name('dashboard');
Route::middleware('auth')->group(function () {
Route::resource('companies', CompanyController::class);
Route::resource('employees', EmployeeController::class);
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
});
Route::get('/', fn() => redirect('/companies'));
require __DIR__.'/auth.php';
Auth::routes();
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');