Skip to main content
100%

Gist 2649481a02836fc333fd420d36464e97

✓ Published0🌍 Public
NNaoray
Last edited Nov 30, 2017
Created on Nov 30, 2017

This example shows a PHP class that customizes Spark's contact-information update interaction. The code uses Laravel's Validator to validate incoming data, enforcing required name and email fields, an email format, and email uniqueness. It overrides the `handle` method to persist the user's name, email, and phone via `forceFill`, then fires the `ContactInformationUpdated` event, extending the base `SparkUpdateContactInformation` class from the Laravel Spark package.

AI-generated description

Similar vizzes