PHP code example of creode / laravel-nova-faqs

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

    

creode / laravel-nova-faqs example snippets


// config/nova-faqs.php
return [
    ...
    'faqs_model' => App\FaqModel::class,
    ...
];

use Creode\LaravelNovaFaqs\Repositories\FaqRepository;

$faqRepository = new FaqRepository();
$faqs = $faqRepository->all();
bash
php artisan migrate
bash
php artisan vendor:publish --tag="nova-faqs-config"
bash
php artisan db:seed --class="Creode\LaravelNovaFaqs\Database\Seeders\FAQsDatabaseSeeder"