generate a new form request: php artisan make:request MyFormRequest
you should end up with a new form request looking like this:
<?php
namespace App\Http\Requests;
use Anik\Form\FormRequest;
class MyFormRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
protected function authorize(): bool
{
return false;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
protected function rules(): array
{
return [
//
];
}
}
implement the form request and you shouldn't get any error.
What does this Pull Request Do?
It updates the request stub in order to be compatible with its parent class definition.
How should this be manually tested?
composer require flipbox/lumen-generator:dev-update_request_stub
php artisan make:request MyFormRequest
Any background context you want to provide?
N/A
What are the relevant issues?
Requests generated incorrectly
Any extra info?