22 lines
680 B
PHP
22 lines
680 B
PHP
<?php
|
|
use App\Http\Controllers\CompanyController;
|
|
use App\Http\Controllers\EmployeeController;
|
|
use App\Http\Controllers\Auth\AuthenticatedSessionController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
|
|
Route::get('/dashboard', function () {
|
|
return view('dashboard');
|
|
})->middleware(['auth', 'verified'])->name('dashboard');
|
|
|
|
Route::middleware('auth')->group(function () {
|
|
Route::resource('companies', CompanyController::class);
|
|
Route::resource('employees', EmployeeController::class);
|
|
});
|
|
|
|
Route::post('/logout', [AuthenticatedSessionController::class, 'destroy'])->name('logout');
|
|
|
|
require __DIR__.'/auth.php'; |