PHP code example of devsfort / fortblog

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

    

devsfort / fortblog example snippets


's3' => [
    'driver' => 's3',
    'key' => env('AWS_ACCESS_KEY_ID'),
    'secret' => env('AWS_SECRET_ACCESS_KEY'),
    'region' => env('AWS_DEFAULT_REGION'),
    'bucket' => env('AWS_BUCKET'),
    'url' => env('CDN_URL'),
    'options' => [
        'CacheControl' => 'public, max-age=315360000'
    ],
],

'unsplash' => [
    'key' => env('UNSPLASH_ACCESS_KEY'),
],
sh
composer n fortblog:install
php artisan storage:link
sh
php artisan fortblog:migrate
sh
php artisan fortblog:migrate
php artisan vendor:publish --tag=fortblog-assets --force