v2 first commit
This commit is contained in:
28
app/Http/Requests/Common/Report.php
Normal file
28
app/Http/Requests/Common/Report.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Common;
|
||||
|
||||
use App\Abstracts\Http\FormRequest;
|
||||
|
||||
class Report extends FormRequest
|
||||
{
|
||||
|
||||
public function authorize()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'name' => 'required|string',
|
||||
'description' => 'required|string',
|
||||
'class' => 'required|string',
|
||||
'group' => 'required|string',
|
||||
'period' => 'required|string',
|
||||
'basis' => 'required|string',
|
||||
'chart' => 'required|string',
|
||||
'enabled' => 'integer|boolean',
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user