Skip to content

Commit 17e799b

Browse files
Adding FormRequest basic methods
1 parent 1837bad commit 17e799b

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/Bases/FormRequest.php

+20-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,24 @@
1010
*/
1111
abstract class FormRequest extends BaseFormRequest
1212
{
13-
//
13+
/* ------------------------------------------------------------------------------------------------
14+
| Main Functions
15+
| ------------------------------------------------------------------------------------------------
16+
*/
17+
/**
18+
* Determine if the user is authorized to make this request.
19+
*
20+
* @return bool
21+
*/
22+
public function authorize()
23+
{
24+
return false;
25+
}
26+
27+
/**
28+
* Get the validation rules that apply to the request.
29+
*
30+
* @return array
31+
*/
32+
abstract public function rules();
1433
}

0 commit comments

Comments
 (0)