PHP code example of irajul / blogflow

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

    

irajul / blogflow example snippets


return [
    'tables' => [
        'prefix' => 'blogflow_', // prefix for all blog tables
    ],
    'user' => [
        'model' => \App\Models\User::class,
        'foreign_key' => 'user_id',
        'columns' => [
            'name' => 'name',
        ],
    ],
    'featured_image' => [
        'thumbnail' => [
            'width' => 300,
            'height' => 300,
        ],
        'fallback_url' => 'https://images.unsplash.com/photo-1547586696-ea22b4d4235d?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3270&q=80',
        'collection_name' => 'post_feature_image',
    ],
    'disk' => 'public',
];
bash
php artisan vendor:publish --provider="Spatie\Tags\TagsServiceProvider" --tag="tags-migrations"
bash
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="medialibrary-migrations"
bash
php artisan vendor:publish --tag="blogflow-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="blogflow-config"