forked from aslan/applicant-site
prodV1 #2
|
@ -16,18 +16,19 @@ Route::middleware(['auth', 'verified'])->prefix('admin')->group(function () {
|
||||||
Route::get('/documents/create/{document?}', [DocumentController::class, 'create'])->name('documents_create');
|
Route::get('/documents/create/{document?}', [DocumentController::class, 'create'])->name('documents_create');
|
||||||
Route::get('/documents/download/{Document}', [DocumentController::class, 'download'])->name('documents_download');
|
Route::get('/documents/download/{Document}', [DocumentController::class, 'download'])->name('documents_download');
|
||||||
|
|
||||||
Route::resource('/educational-institutions', EducationalInstitutionController::class)
|
Route::resource('/educational_institutions', EducationalInstitutionController::class)
|
||||||
->scoped(['educational_institution' => 'slug']);
|
->scoped(['educational_institution' => 'slug']);
|
||||||
Route::resource('/directions', DirectionController::class)
|
Route::resource('/directions', DirectionController::class)
|
||||||
->scoped(['directions' => 'slug']);
|
->scoped(['directions' => 'slug']);
|
||||||
|
|
||||||
Route::resource('/departments', DepartmentController::class)
|
Route::resource('/departments', DepartmentController::class)
|
||||||
->scoped(['department' => 'slug']);
|
->scoped(['department' => 'slug']);
|
||||||
|
Route::resource('/faculties', FacultyController::class)
|
||||||
|
->scoped(['faculty' => 'slug']);
|
||||||
|
|
||||||
Route::resources([
|
Route::resources([
|
||||||
'/documents' => DocumentController::class,
|
'/documents' => DocumentController::class,
|
||||||
'/users' => UserController::class,
|
'/users' => UserController::class,
|
||||||
'/admin-reception-screen' => ReceptionScreenController::class,
|
'/admin-reception-screen' => ReceptionScreenController::class,
|
||||||
'/faculties' => FacultyController::class,
|
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use App\Http\Controllers\PageController;
|
use App\Http\Controllers\admin\PageController;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
Route::get('/', function () {
|
Route::get('/', function () {
|
|
@ -11,4 +11,4 @@ Route::middleware('auth')->group(function () {
|
||||||
|
|
||||||
require __DIR__ . '/auth.php';
|
require __DIR__ . '/auth.php';
|
||||||
require __DIR__ . '/admin.php';
|
require __DIR__ . '/admin.php';
|
||||||
require __DIR__ . '/pages/web.php';
|
require __DIR__ . '/pages.php';
|
||||||
|
|
Loading…
Reference in New Issue