Код: Выделить всё
$controller_prefix = "ledger_sale_returns";
$controllerClass = SaleReturnsController::class;
Route::get($controller_prefix, [$controllerClass, "index"])->name($controller_prefix . ".index");
$name ="show";
Route::get($controller_prefix . "/$name/{id}", [$controllerClass, $name])->name($controller_prefix . "." . $name);
$name = "create";
Route::get($controller_prefix . "_" . $name . "/{sale_id}", [$controllerClass, $name])->name($controller_prefix . "." . $name);
Код: Выделить всё
class SaleReturnsController extends BackendController
{
public function create($sale_id)
{
}
}

Подробнее здесь: https://stackoverflow.com/questions/791 ... -404-error
Мобильная версия