bale/cms

CMS package for manage content

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Language:Blade

pkg:composer/bale/cms

dev-master 2026-01-12 09:54 UTC

This package is auto-updated.

Last update: 2026-01-12 09:54:41 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

You can install the package via composer:

composer require papa-ree/cms

You can publish and run the migrations with:

php artisan vendor:publish --tag="cms-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="cms-config"

This is the contents of the published config file:

return [
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="cms-views"

Shared Components

Option Component

The x-core::option component provides a standard UI for item options (edit/delete).

<x-core::option
    :item="$item->slug"       {{-- Identifier for route parameters --}}
    :itemId="$item->id"       {{-- Identifier for delete action --}}
    route="posts.edit"        {{-- Route name for edit action --}}
    :deleteButton="true"      {{-- Enable delete button --}}
/>

When using inside a loop (like a table), ensure the dropdown initializes safely.

Item Actions (Livewire)

For more complex actions that need to trigger Livewire events directly, use the ItemActions component.

<livewire:core.shared-components.item-actions
    :editUrl="route('posts.edit', $post->slug)"
    :deleteId="$post->id"
    wire:key="item-actions-{{ $post->id }}"
    confirmMessage="Are you sure?"
/>

[!IMPORTANT] > Use wire:key in Loops When iterating over a list of items (e.g., in a table) and using livewire:core.shared-components.item-actions, you MUST provide a unique wire:key. Failure to do so will result in Livewire losing track of components after updates (like deleting an item), causing errors like Method [delete] not found.

Usage

$cms = new Bale\Cms();
echo $cms->echoPhrase('Hello, Bale!');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.