app/Http/Controllers/ApprovedController.php
/**
     * Get a validator for an incoming registration request.
     *
     * @param  array  $data
     * @return \Illuminate\Contracts\Validation\Validator
     */
Get a validator for an incoming registration request.
@param  array  $data
@return \Illuminate\Contracts\Validation\Validator
Get a validator for an incoming registration request . @param array $data @return \ Illuminate \ Contracts \ Validation \ Validator
protected function validator(array $data)
    {
        return Validator::make($data, [
            'email' => 'required|string|email|max:255|unique:users',
            'password' => 'required|string|min:6|confirmed',
            'fullname' => 'required|string|max:255',
            'dob' => 'required|date',
            'sex' => 'required|boolean',
            'status' => 'required|boolean',
        ]);
    }
protected function validator ( array $ data ) { return Validator :: make ( $ data , [ 'email' => 'required|string|email|max:255|unique:users' , 'password' => 'required|string|min:6|confirmed' , 'fullname' => 'required|string|max:255' , 'dob' => 'required|date' , 'sex' => 'required|boolean' , 'status' => 'required|boolean' , ] ) ; }
Get a validator for an incoming registration request.
Get a validator for an incoming registration request .