PHP code example of bambamboole / filament-blog

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

    

bambamboole / filament-blog example snippets


use Bambamboole\FilamentBlog\FilamentBlogPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            FilamentBlogPlugin::make(),
        ]);
}

use Bambamboole\FilamentBlog\Facades\FilamentBlog;

FilamentBlog::routes();

// config/filament-blog.php
'layout' => 'layouts.app',

FilamentBlogPlugin::make()
    ->navigationGroup('Content')
    ->navigationIcon('heroicon-o-document-text')
    ->navigationSort(1);
bash
php artisan vendor:publish --tag="filament-blog-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-blog-config"