mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
32 lines
639 B
PHP
32 lines
639 B
PHP
|
<?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 [
|
||
|
];
|
||
|
}
|
||
|
}
|