StocksNew/Modules/Product/routes/web.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

29 lines
1.1 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use Modules\Product\Http\Controllers\CategoryController;
use Modules\Product\Http\Controllers\ProductController;
use Modules\Product\Http\Controllers\SubCategoryController;
use Modules\Product\Http\Controllers\WarehouseController;
/*
|--------------------------------------------------------------------------
| 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([], function () {
Route::resource('product', ProductController::class)->names('product');
Route::resource('category', CategoryController::class)->names('category');
Route::resource('sub-category', SubCategoryController::class)->names('subCategory');
Route::resource('warehouse', WarehouseController::class)->names('warehouse');
Route::get('get-sub-categories', [SubCategoryController::class, 'getSubCategories'])->name('getSubCategories');
});