Skip to content

Commit

Permalink
Aggiorna la documentazione e la configurazione del gestore di menu pe…
Browse files Browse the repository at this point in the history
…r riflettere il nuovo gruppo di navigazione "CMS"
  • Loading branch information
inerba committed Dec 12, 2024
1 parent 44f5f03 commit c2838a4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 28 deletions.
57 changes: 30 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/postare/filament-simple-menu-manager/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/postare/filament-simple-menu-manager/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/postare/filament-simple-menu-manager.svg?style=flat-square)](https://packagist.org/packages/postare/filament-simple-menu-manager)



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

## Installation
Expand All @@ -20,46 +18,51 @@ composer require postare/filament-simple-menu-manager
You can publish and run the migrations with:

```bash
php artisan vendor:publish --tag="filament-simple-menu-manager-migrations"
php artisan vendor:publish --tag="simple-menu-manager-migrations"
php artisan migrate
```

You can publish the config file with:
Add the plugin to your list in your `AdminPanelProvider`

```bash
php artisan vendor:publish --tag="filament-simple-menu-manager-config"
```php
->plugins([
Postare\SimpleMenuManager\SimpleMenuManagerPlugin::make(),
])
```

Optionally, you can publish the views using
You can publish the config file with:

```bash
php artisan vendor:publish --tag="filament-simple-menu-manager-views"
php artisan vendor:publish --tag="simple-menu-manager-config"
```

This is the contents of the published config file:

```php
use Postare\SimpleMenuManager\Filament\Resources\MenuResource\MenuTypeHandlers;

return [
// Resource configuration
'navigation_group' => 'CMS',
'navigation_sort' => 1,
'model_label' => 'Menu',
'plural_model_label' => 'Menu',

// Menu Model
'model' => Postare\SimpleMenuManager\Models\Menu::class,

/**
* Menu Type Handlers
* Add your custom menu type handlers here.
* */
'handlers' => [
'link' => MenuTypeHandlers\LinkType::class,
'page' => MenuTypeHandlers\PageType::class,
'placeholder' => MenuTypeHandlers\PlaceholderType::class,
],
];
```

## Usage

```php
$simpleMenuManager = new Postare\SimpleMenuManager();
echo $simpleMenuManager->echoPhrase('Hello, Postare!');
```

## Testing

```bash
composer test
```

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
Expand All @@ -70,8 +73,8 @@ Please review [our security policy](../../security/policy) on how to report secu

## Credits

- [Francesco Apruzzese](https://github.com/postare)
- [All Contributors](../../contributors)
- [Francesco Apruzzese](https://github.com/postare)
- [All Contributors](../../contributors)

## License

Expand Down
2 changes: 1 addition & 1 deletion config/simple-menu-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

return [
// Resource configuration
'navigation_group' => 'Portale',
'navigation_group' => 'CMS',
'navigation_sort' => 1,
'model_label' => 'Menu',
'plural_model_label' => 'Menu',
Expand Down

0 comments on commit c2838a4

Please sign in to comment.