app/Http/Requests/UsersRequest.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(Request $request)
    {
        return [
             'name'    => 'required',
            'password' => 'required|min:4',
        ];
    }
public function rules ( Request $ request ) { return [ 'name' => 'required' , 'password' => 'required|min:4' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// 'email'    => 'required|email|unique:email,'.$request->id,