StocksNew/Modules/Stock/routes/web.php

26 lines
857 B
PHP
Raw Normal View History

2024-09-04 06:37:04 +00:00
<?php
use Illuminate\Support\Facades\Route;
2024-09-11 06:47:15 +00:00
use Modules\Stock\Http\Controllers\StockController;
use Modules\Stock\Http\Controllers\StockLocationController;
2024-09-04 06:37:04 +00:00
/*
|--------------------------------------------------------------------------
| 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 () {
2024-09-11 06:47:15 +00:00
Route::resource('stock', StockController::class)->names('stock');
Route::resource('stockLocation', StockLocationController::class)->names('stockLocation');
2024-09-17 10:49:40 +00:00
Route::get('/stocks-by-product', [StockController::class, 'getStocksByProduct'])->name('stocks-by-product');
2024-09-11 06:47:15 +00:00
2024-09-04 06:37:04 +00:00
});