© 2026 Hedgehog Software, LLC
protected function beforeSave(): void { // passing with the data a field that is for created by user $this->data['created_by'] = Auth::id(); }