joydeep-bhowmik/editable-section

Laravel package providing editable sections with media support.

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Language:Blade

pkg:composer/joydeep-bhowmik/editable-section

v1.0.0 2025-12-22 07:18 UTC

This package is auto-updated.

Last update: 2025-12-22 07:23:36 UTC


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>