|
@@ -17,9 +17,7 @@ class Backflow extends Controller
|
|
|
{
|
|
{
|
|
|
DB::beginTransaction();
|
|
DB::beginTransaction();
|
|
|
try {
|
|
try {
|
|
|
- $params = request()->validate([
|
|
|
|
|
- 'id' => ['required', 'integer', 'min:1'],
|
|
|
|
|
- ]);
|
|
|
|
|
|
|
+ $params = request()->validate(['id' => ['required', 'integer', 'min:1']]);
|
|
|
BackflowService::grant($params['id']);
|
|
BackflowService::grant($params['id']);
|
|
|
DB::commit();
|
|
DB::commit();
|
|
|
} catch (ValidationException $e) {
|
|
} catch (ValidationException $e) {
|