5 use Illuminate\Database\Eloquent\Model;
10 * @property \Entity entity
11 * @property string extra
13 class Activity extends Model
15 public function entity()
17 if($this->entity_id) {
18 return $this->morphTo('entity')->first();
24 public function user()
26 return $this->belongsTo('Oxbow\User');
30 * Returns text from the language files, Looks up by using the
33 public function getText()
35 return trans('activities.' . $this->key);