app/Http/Requests/Users/UserRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name' => 'required|max:191',
            'email' => 'required|email|unique:users,email|max:191',
            'password' => 'required|same:confirm-password|min:8',
            'status' => 'required',
            'roles' => 'required'
        ];
    }
public function rules ( ) { return [ 'name' => 'required|max:191' , 'email' => 'required|email|unique:users,email|max:191' , 'password' => 'required|same:confirm-password|min:8' , 'status' => 'required' , 'roles' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .