PHP code example of creode / laravel-nova-events

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


// config/nova-events.php
return [
    ...
    'event_model' => App\NovaEvent::class,
    ...
];

use Creode\LaravelNovaEvents\Repositories\EventRepository;

$eventRepository = new EventRepository();
$events = $eventRepository->all();
bash
php artisan migrate
bash
php artisan vendor:publish --tag="nova-events-config"
bash
php artisan db:seed --class="Creode\LaravelNovaEvents\Database\Seeders\EventsDatabaseSeeder"