Skip to content

Commit

Permalink
Update request.stub
Browse files Browse the repository at this point in the history
Format to the current Laravel standard.
  • Loading branch information
solomon-ochepa authored Oct 20, 2023
1 parent ef67a73 commit 1f4c32d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Commands/stubs/request.stub
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ class $CLASS$ extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
public function rules(): array
{
return [
//
Expand All @@ -20,10 +18,8 @@ class $CLASS$ extends FormRequest

/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
public function authorize(): bool
{
return true;
}
Expand Down

0 comments on commit 1f4c32d

Please sign in to comment.