1. Go to this page and download the library: Download inerba/postare-kit-12 library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
inerba / postare-kit-12 example snippets
namespace App\Filament\SimpleMenu\Handlers;
use Filament\Forms\Components;
use Postare\SimpleMenuManager\Filament\Resources\MenuResource\MenuTypeHandlers\MenuTypeInterface;
use Postare\SimpleMenuManager\Filament\Resources\MenuResource\Traits\CommonFieldsTrait;
class BlogCategoryHandler implements MenuTypeInterface
{
use CommonFieldsTrait;
public function getName(): string
{
// If necessary, you can modify the name of the menu type
return "Blog Category";
}
public static function getFields(): array
{
// Add the necessary fields for your menu type in this array
return [
// Components\TextInput::make('url')
// ->label('URL')
// ->
bash
# Syntax: php artisan make:menu-handler {name} {panel?}
# Example: A menu item for your blog categories
php artisan make:menu-handler BlogCategory
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.