*/ protected $fillable = [ Dump::ATTRIBUTE_PATH, ]; /** * The event map for the model. * * Allows for object-based events for native Eloquent events. * * @var array */ protected $dispatchesEvents = [ 'created' => DumpCreated::class, 'deleted' => DumpDeleted::class, 'restored' => DumpRestored::class, 'updated' => DumpUpdated::class, ]; /** * The table associated with the model. * * @var string */ protected $table = Dump::TABLE; /** * The primary key associated with the table. * * @var string */ protected $primaryKey = Dump::ATTRIBUTE_ID; /** * Get name. * * @return string */ public function getName(): string { return $this->path; } /** * Get subtitle. * * @return string */ public function getSubtitle(): string { return $this->getName(); } }