fully working now

This commit is contained in:
2025-05-07 15:11:58 +05:45
parent 12e3d4a2f0
commit 50258a116a
20 changed files with 574 additions and 80 deletions

View File

@ -1,6 +1,7 @@
<?php
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\CompanyController;
use App\Http\Controllers\EmployeeController;
use App\Http\Controllers\Auth\AuthenticatedSessionController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
@ -12,13 +13,10 @@ Route::get('/dashboard', function () {
})->middleware(['auth', 'verified'])->name('dashboard');
Route::middleware('auth')->group(function () {
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::resource('companies', CompanyController::class);
Route::resource('employees', EmployeeController::class);
});
require __DIR__.'/auth.php';
Route::post('/logout', [AuthenticatedSessionController::class, 'destroy'])->name('logout');
Auth::routes();
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
require __DIR__.'/auth.php';