/** * Return the entry as an array. * * @return array */ public function toArray() { $array = parent::toArray(); $array['path'] = $this->path(); $array['location'] = $this->location(); return $array; }
/** * Boot the model. */ protected static function boot() { parent::boot(); self::observe('Anomaly\\FilesModule\\File\\FileObserver'); }