StocksNew/Modules/Stock/routes/web.php
2024-09-17 16:34:40 +05:45

26 lines
857 B
PHP

<?php
use Illuminate\Support\Facades\Route;
use Modules\Stock\Http\Controllers\StockController;
use Modules\Stock\Http\Controllers\StockLocationController;
/*
|--------------------------------------------------------------------------
| 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('stock', StockController::class)->names('stock');
Route::resource('stockLocation', StockLocationController::class)->names('stockLocation');
Route::get('/stocks-by-product', [StockController::class, 'getStocksByProduct'])->name('stocks-by-product');
});