Issue when submitting a form and the controller method use a form request.
When a form is submitted and the controller method is using a form request an exception is thrown.
Type error: Argument 1 passed to Symfony\Component\HttpFoundation\Request::setSession() must be an instance of Symfony\Component\HttpFoundation\Session\SessionInterface, instance of Illuminate\Session\Store given, called in /app/vendor/laravel/framework/src/Illuminate/Foundation/Providers/FormRequestServiceProvider.php on line 60
The method you need is now called setLaravelSession. Also, note that dev-master is now Laravel 5.5, not 5.4. :)
The method you need is now called setLaravelSession.
Looking at the framework code, looks like Taylor missed a few places when he did the refactoring. Thanks for the report. :)
@brunogaspar Please let me know if https://github.com/laravel/framework/pull/17064 fixes your issue.
Most helpful comment
The method you need is now called
setLaravelSession. Also, note thatdev-masteris now Laravel 5.5, not 5.4. :)