app/Api/V1/Requests/AdminCreateUserRequest.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 [
            'username' => 'bail|required|unique:users',
            'email' => 'required|email|unique:users',
            'first_name' => 'required|max:255',
            'last_name' => 'required|max:255',
            'phone' => 'required|min:8|max:20|unique:users',
            'frontend_url' => 'required|string',
        ];
	}
public function rules ( ) { return [ 'username' => 'bail|required|unique:users' , 'email' => 'required|email|unique:users' , 'first_name' => 'required|max:255' , 'last_name' => 'required|max:255' , 'phone' => 'required|min:8|max:20|unique:users' , 'frontend_url' => 'required|string' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .