title: Call form request from controller based on request input
body: <p>I have a controller that accepts input. This input is parsed by a request validation (POSRequest). If the request validation succeeded, the request is then passed into the controller. Standard laravel stuff.<br /><br />I have to typehint in the controller POSRequest $requests in order to fire the request validation, how can I call other requests based on the input provided in POSRequest $request?<br /><br /><strong>Here is some code to clear things up a bit</strong>:<br /><code>public function process(POSRequest $request){ ... }</code><br /><br />All of my requests come to <strong>process</strong> function and based on input of $requests i need to call other functions:<br /><code>private function StartRequest(POSStartRequest $request) { ... }</code><br /><code>private function CheckRequest(POSCheckRequest $request) { ... }</code><br /><br />How can i call these frunctions from within the controller from within the process function and convert POSRequest to either one of other requests?<br /><br />Thank you in advance!</p>