PHP code example of dropinblog / laravel-rendered

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

    

dropinblog / laravel-rendered example snippets


return [
    // DropInBlog API Configuration
    'id' => env('DROPINBLOG_ID'),
    'api_key' => env('DROPINBLOG_API_KEY'),
    'response_fields' => 'head_html,body_html,head_items',

    // Routes Configuration
    'path' => 'blog',

    // View Configuration
    'layout' => 'layouts.app',
    'sections' => [
        'content' => 'content',
    ],

    // Feed Configuration
    'feed' => [
        'type' => 'rss',
        'limit' => 10,
    ],
];
bash
php artisan vendor:publish --provider="DropInBlog\\Laravel\\Providers\\DropInBlogServiceProvider" --tag="config"
bash
php artisan vendor:publish --provider="DropInBlog\\Laravel\\Providers\\DropInBlogServiceProvider" --tag="config" --force
php artisan config:clear
bash
php artisan vendor:publish --provider="DropInBlog\\Laravel\\Providers\\DropInBlogServiceProvider" --tag="views"