PHP code example of daniel-cintra / modular-blog

1. Go to this page and download the library: Download daniel-cintra/modular-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/ */

    

daniel-cintra / modular-blog example snippets


return [
    ...
    Modules\Blog\BlogServiceProvider::class,
];



namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Modules\Blog\Database\Seeders\BlogAclSeeder;
use Modules\Blog\Database\Seeders\BlogSeeder;

public function run(): void
{
    $this->call(BlogAclSeeder::class);
    $this->call(BlogSeeder::class);
}

return [
    ...
    'onUpdate' => true,
    ...
];
bash
php artisan modular:blog-install
bash
php artisan db:seed --class="Modules\\Blog\\Database\\Seeders\\BlogSeeder"
bash
php artisan db:seed --class="Modules\\Blog\\Database\\Seeders\\BlogAclSeeder"
bash
php artisan vendor:publish --provider="Cviebrock\EloquentSluggable\ServiceProvider"