PHP code example of giaphiep / post

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

    

giaphiep / post example snippets

 php
GiapHiep\Post\PostServiceProvider::class,
Yajra\DataTables\DataTablesServiceProvider::class,

 php
'DataTables' => Yajra\DataTables\Facades\DataTables::class,
 bash
$ php artisan vendor:publish
$ php artisan migrate
 bash
 php artisan route:clear
 php artisan config:clear
 php
 'optimizeImages' => \Spatie\LaravelImageOptimizer\Middlewares\OptimizeImages::class,
 php
'middlewares' => [ ..., 'optimizeImages'],