17 lines
1020 B
PHP
17 lines
1020 B
PHP
<?php
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\Admin\Http\Controllers\CountriesController;
|
|
|
|
Route::prefix("country")->as('countries.')->group(function () {
|
|
Route::get('/', [CountriesController::class, 'index'])->name('index');
|
|
Route::get('/create', [CountriesController::class, 'create'])->name('create');
|
|
Route::post('/store', [CountriesController::class, 'store'])->name('store');
|
|
Route::post('/sort', [CountriesController::class, 'sort'])->name('sort');
|
|
Route::post('/updatealias', [CountriesController::class, 'updatealias'])->name('updatealias');
|
|
Route::get('/show/{id}', [CountriesController::class, 'show'])->name('show');
|
|
Route::get('/edit/{id}', [CountriesController::class, 'edit'])->name('edit');
|
|
Route::post('/update/{id}', [CountriesController::class, 'update'])->name('update');
|
|
Route::delete('/destroy/{id}', [CountriesController::class, 'destroy'])->name('destroy');
|
|
Route::get('/toggle/{id}', [CountriesController::class, 'toggle'])->name('toggle');
|
|
});
|