PHP code example of wezlo / filament-docs

1. Go to this page and download the library: Download wezlo/filament-docs 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/ */

    

wezlo / filament-docs example snippets


use Wezlo\FilamentDocs\FilamentDocsPlugin;

$panel->plugins([
    FilamentDocsPlugin::make()
        ->path('handbook')         // panel-relative URL: /admin/handbook
        ->locales(['en', 'ar'])
        ->defaultLocale('en')
        ->navigationGroup('Help')
        ->navigationIcon('heroicon-o-book-open'),
]);

return [
    'sections' => [
        'orders' => [
            'icon' => 'heroicon-o-shopping-cart',
            'order' => 2,
            'title' => [
                'en' => 'Orders',
                'ar' => 'الطلبات',
            ],
        ],
        'site-panel' => [
            'title' => ['en' => 'Site panel', 'ar' => 'لوحة الموقع'],
        ],
    ],
    'hidden' => [],
];

$this->app->bind(
    Wezlo\FilamentDocs\Contracts\DocSource::class,
    YourCustomSource::class,
);
bash
composer vendor:publish --tag=filament-docs-config
php artisan filament-docs:install        # scaffolds resources/docs/{en,ar}/...
php artisan filament-docs:index --force  # builds the search index