Files
sibedas/resources/laravel-code-generator/templates/default/form-request.stub
Firman Herdiansyah 99e99fa2e6 Update Dashboard Layout
2025-02-05 13:36:33 +07:00

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 %]
}