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