PHP code example of horaceho / fullcalendar
1. Go to this page and download the library: Download horaceho/fullcalendar 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/ */
horaceho / fullcalendar example snippets
`create_events_table.php
`
public function up()
{
Schema::create('events', function (Blueprint $table) {
$table->increments('id');
$table->text('title');
$table->dateTime('start_date')->nullable();
$table->dateTime('end_date')->nullable();
$table->timestamps();
});
}
`
php artisan migrate
`App\Nova\Event.php
`App\Event.php
`
use Horaceho\Fullcalendar\Fullcalendar;
public function tools()
{
return [
new Fullcalendar,
];
}
`nova-components/Fullcalendar/routes/api.php