*/ protected $hidden = [ Page::ATTRIBUTE_BODY, ]; /** * The event map for the model. * * Allows for object-based events for native Eloquent events. * * @var array */ protected $dispatchesEvents = [ 'created' => PageCreated::class, 'deleted' => PageDeleted::class, 'restored' => PageRestored::class, 'updated' => PageUpdated::class, ]; /** * The table associated with the model. * * @var string */ protected $table = Page::TABLE; /** * The primary key associated with the table. * * @var string */ protected $primaryKey = Page::ATTRIBUTE_ID; /** * Get the route key for the model. * * @return string * * @noinspection PhpMissingParentCallCommonInspection */ public function getRouteKeyName(): string { return Page::ATTRIBUTE_SLUG; } /** * Get name. * * @return string */ public function getName(): string { return $this->name; } }