4geo35 / editable-block-texts
Additional texts block
v1.0.2
2026-08-25 10:06 UTC
Requires
- 4geo35/tailwindcss-theme: ^1.3
- 4geo35/user-management: ^1.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-28 09:14:13 UTC
README
Установка
Добавить в tailwind.admin.config.js, созданный в пакете tailwindcss-theme.
"./vendor/4geo35/editable-block-texts/src/resources/views/livewire/admin/**/*.blade.php",
"./vendor/4geo35/editable-block-texts/src/resources/views/admin/**/*.blade.php",
"./vendor/4geo35/editable-block-texts/src/resources/views/components/**/*.blade.php",
Добавить в tailwind.config.js, созданный в пакете tailwindcss-theme.
"./vendor/4geo35/editable-block-texts/src/resources/views/web/**/*.blade.php",
Запустить миграции для создания таблиц php artisan migrate
Views
Сокращение для представлений: ebtxts
Компонент для вывода текста: <x-ebtxts::texts.teaser :$text />
Livewire Components
Admin
ebtxts-text-list: список текстов, относящихся к моделиblock-item;use-card-cover- отображать с классомcardили без.
Traits
ShouldTexts- набор методов, необходимых для управления текстами у модели.
Interfaces
ShouldTextsInterface- интерфейс, который необходим для модели с текстами.