for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App;
use Illuminate\Database\Eloquent\SoftDeletes;
use ModularSoftware\LaravelGedcom\Observers\EventActionsObserver;
use LaravelEnso\Tables\Traits\TableCache;
class PersonEvent extends Event
{
use TableCache;
use SoftDeletes;
protected $dates = ['deleted_at'];
protected $table = 'person_events';
protected $fillable = [
'person_id',
'title',
'type',
'attr',
'date',
'plac',
'phon',
'caus',
'age',
'agnc',
'places_id',
'description',
'year',
'month',
'day',
];
protected $gedcom_event_names = [
'BIRT' => 'Birth',
'DEAT' => 'Death',
public static function boot()
parent::boot();
self::observe(new EventActionsObserver);
}
public function person()
return $this->hasOne(Person::class, 'id', 'person_id');