| 1 | <?php |
||
| 8 | class AccountInfoRequest extends FormRequest |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Determine if the user is authorized to make this request. |
||
| 12 | * |
||
| 13 | * @return bool |
||
| 14 | */ |
||
| 15 | public function authorize() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Restrict the fields that the user can change. |
||
| 23 | * |
||
| 24 | * @return array |
||
| 25 | */ |
||
| 26 | public function validationData() |
||
| 27 | { |
||
| 28 | return $this->only(backpack_authentication_column(), 'name'); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the validation rules that apply to the request. |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function rules() |
||
| 49 | } |
||
| 50 |