Files
2025-08-17 16:23:14 +05:45

40 lines
1.3 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use Modules\Client\app\Http\Controllers\ClientController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::group(
[
'prefix' => 'apanel',
'middleware' => ['auth'],
'as' => 'cms.',
],
function () {
Route::group(
[
'prefix' => 'cms',
'as' => 'clients.',
'controller' => 'ClientController',
],
function () {
Route::get('clients', 'index')->name('index');
Route::get('clients/create', 'create')->name('create');
Route::post('clients/store', 'store')->name('store');
Route::get('clients/{uuid}/edit', 'edit')->name('edit');
Route::put('clients/{uuid}/update', 'update')->name('update');
Route::delete('clients/{uuid}/delete', 'destroy')->name('delete');
}
);
}
);