joydeep-bhowmik/editable-section
最新稳定版本:v1.0.0
Composer 安装命令:
composer require joydeep-bhowmik/editable-section
包简介
Laravel package providing editable sections with media support.
README 文档
README
Simple Laravel package to manage small editable sections with optional media attachments.
Installation
- Require the package (replace with your Packagist vendor):
composer require joydeep-bhowmik/editable-section
- Publish configuration, views and migrations:
php artisan vendor:publish --provider="JoydeepBhowmik\EditableSection\Providers\EditableSectionServiceProvider" --tag="config" php artisan vendor:publish --provider="JoydeepBhowmik\EditableSection\Providers\EditableSectionServiceProvider" --tag="views" php artisan vendor:publish --provider="JoydeepBhowmik\EditableSection\Providers\EditableSectionServiceProvider" --tag="migrations"
Configuration
Edit the published config config/editable-section.php to set media collection name, upload limits and access callback.
Usage
- The package provides views under the
editable-sectionview namespace. Publish and override views inresources/views/vendor/editable-section. - Routes are loaded from the package
web/web.phpfile. If you need to customize, copy the route file into your app and adjust. - The
EditableSectionmodel is provided and namespaced to the package; if you reference it directly, useJoydeepBhowmik\EditableSection\Models\EditableSection.
Notes
- Update
composer.jsonnameandauthorsto your package vendor and author information before publishing.
example usage
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <meta name="csrf-token" content="{{ csrf_token() }}"> @vite(['resources/js/app.js']) <x-editable.head /> </head> <body> <h1>hello</h1> <x-editable.section name="hero-text-2"> hello text placeholder </x-editable.section> <x-editable /> </body> </html>
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-22