- Added CategoryController for handling category operations. - Created CategoryRequest for validation of category data. - Introduced CategoryService for business logic related to categories. - Implemented sluggable functionality in the Category model for automatic slug generation. - Developed UI components for category management, including a data table and dialogs for creating and editing categories. - Updated routes to include resourceful routes for categories.
17 lines
504 B
PHP
17 lines
504 B
PHP
<?php
|
|
|
|
use App\Http\Controllers\Admin\Master\CategoryController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::inertia('/', 'welcome')->name('home');
|
|
|
|
Route::middleware(['auth', 'verified'])->group(function () {
|
|
Route::inertia('dashboard', 'dashboard')->name('dashboard');
|
|
|
|
Route::prefix('admin/master')->name('admin.master.')->group(function () {
|
|
Route::resource('categories', CategoryController::class)->except(['show', 'create', 'edit']);
|
|
});
|
|
});
|
|
|
|
require __DIR__.'/settings.php';
|