PHP code example of lnch / laravel-blog

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

    

lnch / laravel-blog example snippets


'providers' => [
    // ...
    Lnch\LaravelBlog\LaravelBlogServiceProvider::class,
];

'aliases' => [
    // ...
    Lnch\LaravelBlog\LaravelBlogFacade::class
]

public static function getSiteId();

    // ...
    
    'site_model' => Lnch\LaravelBlog\Models\Site::class,
    
    'site_primary_key' => 'id',
bash
php artisan vendor:publish --tag="laravel-blog/migrations"
bash
php artisan migrate
bash
php artisan vendor:publish --tag="laravel-blog/public"
bash
php artisan vendor:publish --tag="laravel-blog/config"