Skip to main content
100%

Gist b0cd3b8647c0d1f52cb0ed7da04e8abb

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

This example shows a PHP class that updates a user’s contact information, assigning name and email fields via `forceFill` and then persisting the changes with `save()`. It fires a `ContactInformationUpdated` event after the update, and returns the modified user object. The code relies on Laravel’s Eloquent model methods—`forceFill`, `save`, and the `event` helper—along with the custom `Contract` interface, though the interface’s detail is not shown. The rendering is purely backend logic, with no visualization layer present.

AI-generated description

Similar vizzes