ProjectGroupRequest.php 583 字节
<?php

namespace App\Http\Requests\Bside\User;

use Illuminate\Foundation\Http\FormRequest;

class ProjectGroupRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'name' => 'required|max:255||unique:gl_project_group',
        ];
    }

    public function messages()
    {
        return [
            'name.required' => '请输入用户组名称',
        ];
    }
}