*/ protected $fillable = [ 'video_id', ]; /** * Perform any actions required after the model boots. * * @return void */ protected static function booted(): void { static::creating(function () { throw new \RuntimeException("Creating a new page is not authorized"); }); static::deleting(function () { throw new \RuntimeException('Deleting a page is not authorized'); }); } }