lk.zachem.info/routes/web.php
2024-11-25 15:39:54 +03:00

38 lines
1.2 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Company\CreateCompanyController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
Route::get('/', function () {
return view(view: 'welcome');
});
//Company
Route::get('/company/create', function () {
return view(view: 'company.create');
})->name('company.form.create');
Route::post('/company/create', CreateCompanyController::class)->name('company.create');
Auth::routes();
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
Route::get('/clients/table', [App\Http\Controllers\ClientsTableController::class, 'index'])->name('clients.table');
Route::get('/company/{company}/details/', [App\Http\Controllers\Company\DetailsController::class, 'index'])->name('company.details');
Route::post('/company/{company}/details/', [App\Http\Controllers\Company\DetailsController::class, 'store'])->name('company.details.store');