app/Http/Requests/StoreUserRequest.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','string','max:255'],
            'last_name' => ['required','string','max:255'],
            'email' => ['required','string','email','max:255','unique:users'],
            'password' => ['required','string','min:1','max:10','confirmed'],
            'role' => ['required','integer'],
        ];
    }
public function rules ( ) { return [ 'first_name' => [ 'required' , 'string' , 'max:255' ] , 'last_name' => [ 'required' , 'string' , 'max:255' ] , 'email' => [ 'required' , 'string' , 'email' , 'max:255' , 'unique:users' ] , 'password' => [ 'required' , 'string' , 'min:1' , 'max:10' , 'confirmed' ] , 'role' => [ 'required' , 'integer' ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .