PHP code example of ozankurt / laravel-blog

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

    

ozankurt / laravel-blog example snippets


return [

    'database' => [
        'connection' = env('DB_CONNECTION', 'mysql'),
        'table_prefix' => 'blog_',
    ],

    'models' => [
        'user' => App\Models\User::class,

        /** If you want to use your own models, you can extend the package models. */
        'category' => OzanKurt\Blog\Category::class,
        'comment' => OzanKurt\Blog\Comment::class,
        'post' => OzanKurt\Blog\Post::class,
    ],

    'media' => [
        'disk' => 'public',
    ],

    'video_thumbnail_qualities' => [
        /** Vimeo options: 'thumbnail_small', 'thumbnail_medium', 'thumbnail_large' */
        'vimeo' => 'thumbnail_medium',
        /** YouTube options: '0', '1', '2', '3', 'default', 'hqdefault', 'mqdefault', 'sddefault', 'maxresdefault' */
        'youtube' => 'default',
    ],

    'caching' => [
        'enabled' => false,
        'duration' => 15,
    ],
];
bash
php artisan vendor:publish --provider="Ozankurt\Blog\BlogServiceProvider"
bash
php artisan migrate