add backWithErrors() to controller

This commit is contained in:
2018-07-21 20:01:11 +02:00
parent b9ccdb6f27
commit 75afc67f31
2 changed files with 10 additions and 2 deletions
+5
View File
@@ -10,4 +10,9 @@ use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
protected function backWithErrors($errors)
{
return back()->withInput()->withErrors($errors);
}
}