Still I can't get any one working, extending from the FormRequest Constructor or creating a separate file that will be loaded through a service provider..
am I missing something or did it change since that commit..
Starting to pull my hair on this.
Pretty straight forward though ...
use Illuminate\Validation\Factory;
class AnswersFormRequest extends Request {
public function __construct(Factory $factory)
{
$factory->extend('test', function ($attribute, $value, $parameters)
{
return false;
},
'Bad number format'
);
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
"ville" => "test",