35 lines
655 B
Plaintext
35 lines
655 B
Plaintext
<?php
|
|
|
|
namespace [% class_namespace %];
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
[% use_command_placeholder %]
|
|
|
|
class [% form_request_class %] extends FormRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
return [% autherized_boolean %];
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
$rules = [
|
|
[% validation_rules %]
|
|
];
|
|
[% file_validation_snippet %]
|
|
return $rules;
|
|
}
|
|
[% get_data_method %]
|
|
[% upload_method %]
|
|
} |