mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +02:00
refactor: use Validation::getValidated() when using $this->validate() in controllers
This commit is contained in:
parent
ff0e681763
commit
2c07070b2c
18 changed files with 129 additions and 70 deletions
|
|
@ -27,9 +27,11 @@ class InteractController extends Controller
|
|||
->with('errors', service('validation')->getErrors());
|
||||
}
|
||||
|
||||
$validData = $this->validator->getValidated();
|
||||
|
||||
helper('auth');
|
||||
|
||||
set_interact_as_actor((int) $this->request->getPost('actor_id'));
|
||||
set_interact_as_actor((int) $validData['actor_id']);
|
||||
|
||||
return redirect()->back();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue