Download the PHP package schedulemycoach/laravel7-fullcalendar without Composer
On this page you can find all versions of the php package schedulemycoach/laravel7-fullcalendar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download schedulemycoach/laravel7-fullcalendar
More information about schedulemycoach/laravel7-fullcalendar
Files in schedulemycoach/laravel7-fullcalendar
Package laravel7-fullcalendar
Short Description Updated Laravel component for fullcalendar package base on Edo Freriks original package
License MIT
Homepage https://github.com/schedulemycoach/laravel7-fullcalendar
Informations about the package laravel7-fullcalendar
Laravel 7/8/9 Fullcalendar component
Notice: This is a fork of Edofre/laravel-fullcalendar package, which I have grown to love and use. This package is now code compliant for the newer versions of Laravel 7 and FullCalendar v5. This version will now install adding the required NPM packages directly without Bower or the fxp/composer-asset plugin.
Warning
If you are upgrading from a previous version I would remove Edofre/laravel-fullcalendar package, any unneeded Bower/fxp/composer-asset plugin components if composer fails to remove them, the original Edo service provider and alias in the config/app file and any FullCalendar config and FullCalendar CSS/JS files from that previous package in your public folder. You may need to remove the old Edo package lines from the bootstrap/config.php file if you get this error:
I also had to remove the FullCalendar, Moment and jQuery from the NPM.
Use with Laravel/Homestead
This package will NOT install properly under Laravel/Homestead on Windows because of VirtualBox issues without following these steps. Right click your command window (Typically GIT Bash) and choose run as Administrator. In your Homestead Yaml file the folders section should look something like this:
This will require you to enter your Windows User name and password. More information here: https://www.vagrantup.com/docs/synced-folders/smb.html#smb_username. The first time I made this change I provisioned when I brought Vagrant up.
Installation
The preferred way to install this extension is through composer.
To install, either run
or add
to the section of your composer.json
file.
Note
The fxp/composer-asset plugin is no longer required for this package to install properly. We have converted this package to use Foxy. This plugin enables you to download NPM packages through composer and is included as part of this package. You can find more info on this page: https://github.com/fxpio/foxy.
Configuration
Add the ServiceProvider to your config/app.php
And add the facade
Publish assets and configuration files
The Config File
By publish the vendor config file you will find a new file called fullcalendar.php in the /config folder. These configs allow you to load either the minified or non-minified CSS and JS for Fullcalander.
Google Calendar Inclusion
Per the Fullcalendar NPM package the google calendar CSS/JS files are now included and do not need to be loaded seperately.
Manually loading script files
By setting the both the include_scripts options in the config file to false the scripts will not be included when generating the calendar. If you want to manually include the scripts you can call the following static function in your header/footer/etc.
For the Full files
For the Minified files
Example
Below is an example of a controller action configuring the calendar
You can then render the calendar by generating the HMTL and scripts
Tests
Run the tests by executing the following command:
All versions of laravel7-fullcalendar with dependencies
foxy/foxy Version ^1.0.0
laravel/framework Version ^7.0|^8.0|^9.0