(string) $user->login . ' (' . (string) $user->email . ')', Permission::USERS_MANAGE, 'user' ); Trash::register( 'roles', Role::class, 'Роли', static fn (Role $role): string => (string) $role->name, Permission::ROLES_MANAGE, 'role' ); Trash::register( 'webhooks', Webhook::class, 'Вебхуки', static fn (Webhook $webhook): string => (string) $webhook->name . ' → ' . (string) $webhook->url, Permission::WEBHOOKS_MANAGE, 'webhook' ); Trash::register( 'notes', Note::class, 'Заметки', static fn (Note $note): string => (string) $note->title, 'notes.manage', 'note' );