joydeep-bhowmik/editable-section 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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-section view namespace. Publish and override views in resources/views/vendor/editable-section.
  • Routes are loaded from the package web/web.php file. If you need to customize, copy the route file into your app and adjust.
  • The EditableSection model is provided and namespaced to the package; if you reference it directly, use JoydeepBhowmik\EditableSection\Models\EditableSection.

Notes

  • Update composer.json name and authors to 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-22