feature: user filter & user generate

This commit is contained in:
Tokumeikoi
2020-10-08 12:13:47 +08:00
parent 90545a333f
commit 7a2967f41c
7 changed files with 178 additions and 14 deletions

View File

@ -0,0 +1,31 @@
<?php
namespace App\Http\Requests\Admin;
use Illuminate\Foundation\Http\FormRequest;
class UserGenerate extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'count' => 'nullable|integer|max:500',
'expired_at' => 'nullable|integer',
'plan_id' => 'nullable|integer',
'email_prefix' => 'nullable',
'email_suffix' => 'required',
'password' => 'nullable'
];
}
public function messages()
{
return [
];
}
}