PHP code example of dewsign / nova-blog

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

    

dewsign / nova-blog example snippets


public function tools()
{
    return [
        ...
        new \Dewsign\NovaBlog\Nova\NovaBlogTool,
        ...
    ];
}

'repeaters' => [
    'More\Repeaters'
],

'replaceRepeaters' => true,

'models' => [
    'article' => 'App\Article',
],
'resources' => [
    'article' => 'App\Nova\Article',
],

'group' => 'Blog',

// database/seeds/DatabaseSeeder.php

public function run()
{
    $this->call(Dewsign\NovaBlog\Database\Seeds\CategorySeeder::class);
    $this->call(Dewsign\NovaBlog\Database\Seeds\ArticleSeeder::class);
}

// config/app.php

'providers' => [
    ...
    Dewsign\NovaBlog\Providers\AuthServiceProvider::class,
],
sh
php artisan migrate