PHP code example of nawasara / news

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

    

nawasara / news example snippets


$table->unique(['source_id', 'wp_id']);
$table->unique(['source_id', 'slug']);
bash
composer migrate
php artisan db:seed --class="Nawasara\News\Database\Seeders\PermissionSeeder"
php artisan db:seed --class="Nawasara\News\Database\Seeders\SourceSeeder"