PHP code example of geowrgetudor / laravel-tiny-blog

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

    

geowrgetudor / laravel-tiny-blog example snippets


use Geow\TinyBlog\Models\Article;

Article::create([
    'title' => 'My first article',
    'description' => 'Trying out Tiny Blog',
    'img' => 'https://images.unsplash.com/photo-1682686579688-c2ba945eda0e?q=80&w=500&auto=format&fit=crop',
    'content' => '## Hello world', // should be markdown content
    'author' => 'George Tudor',
    'date' => now()->toDateTimeString(),
]);
bash
php artisan tinyblog:init
bash
php artisan tinyblog:publish
bash
php artisan vendor:publish --tag="tiny-blog-config"
bash
php artisan tinyblog:example
bash
php artisan vendor:publish --tag="tiny-blog-views"