PHP code example of swiftmade / blogdown

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

    

swiftmade / blogdown example snippets


$post->random_attribute; // 51231

public function slug()
{
    return Str::slug($this->view_name);
}

public function slug()
{
    return Str::slug($this->date->format('Y-m-d') . ' ' . $this->title);
}
bash
php artisan blog:new
bash
php artisan vendor:publish  --provider "Swiftmade\Blogdown\BlogdownProvider"