app/Http/Requests/SocialUserProfileRequest.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 [
            'first_name'=> 'required|min:3|max:32',
            'last_name' => 'required|min:3|max:32',
            'gender'    => 'required|in:male,female',
            'location'  => 'required|min:3|max:32',
            'bio'       => 'required',
            'account_type' => 'required|in:1,0'
        ];
    }
public function rules ( ) { return [ 'first_name' => 'required|min:3|max:32' , 'last_name' => 'required|min:3|max:32' , 'gender' => 'required|in:male,female' , 'location' => 'required|min:3|max:32' , 'bio' => 'required' , 'account_type' => 'required|in:1,0' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .