routes.php
<?php
Route::group(['middleware' => 'api', 'prefix' => 'sale', 'namespace' => 'Modules\sale\Http\Controllers'], function()
{
Route::get('/', 'SaleController@index');
Route::resource('sale','SaleController');
});
I'm trying to do request to my controller, but it's returning me the following error .
MethodNotAllowedHttpException
http:127.0.0.1:8000/public/room
– aldrin27SalesController
? – Jie