app/Http/Requests/UserEditRequest.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',
      'email' => 'required|email',
      'roles' => 'required',
      'status' => 'required',
      'password' => 'nullable|min:6',
    ];
  }
public function rules ( ) { return [ 'name' => 'required' , 'email' => 'required|email' , 'roles' => 'required' , 'status' => 'required' , 'password' => 'nullable|min:6' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .