Request.php
Go to the documentation of this file.
1 <?php
2 
3 namespace App\Http\Requests;
4 
6 
7 abstract class Request extends FormRequest
8 {
9  protected $rules = [];
10 
11  public function rules()
12  {
13  return $this->rules;
14  }
15 
16  public function response(array $errors)
17  {
18  $this->session->flash('errorMessages', $errors);
19  return $this->redirector->back()->withErrors($errors)->withInput();
20  }
21 }
response(array $errors)
Definition: Request.php:16