Download the PHP package arkhas/laravel5calendar without Composer
On this page you can find all versions of the php package arkhas/laravel5calendar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arkhas/laravel5calendar
More information about arkhas/laravel5calendar
Files in arkhas/laravel5calendar
Package laravel5calendar
Short Description A calendar with event managment package for laravel 5 using Carbon and Blade templating
License MIT
Informations about the package laravel5calendar
Installation
Install the package through Composer :
composer require arkhas/laravel5calendar
Now all you have to do is add the service provider of the package and alias the package. To do this open your app/config/app.php
file.
Add a new line to the service providers
array:
Arkhas\Calendar\CalendarServiceProvider::class,
Add a new line to the aliases
array:
'Calendar' => Arkhas\Calendar\Facades\Calendar::class,
Then insert this in the top of your file :
Or use it directly :
Now you're ready to start using the calendar package in your application.
Usage
You can use the generate
method to generate a calendar, it will return the template of the calendar.
For using it in you view, simply use :
Routing
By default, the routing format is /calendar/YYYY/MM
, you can change the leading route using the url data parameter :
Template
If you want to use a custom template, run :
php artisan vendor:publish
The template is located in resources/views/vendor/calendar/calendar.blade.php
The css file is located in public/assets/arkhas/calendar/calendar.css
Navigate through the calendar
Add this to your template
Navigate through the calendar with links using the calendarButton
Class.
The ajax script will replace the calendar
class by an updated calendar.
For more information about how it work, you can navigate to /arkhas/demo
and see the template in ressources/views/vendor/calendar/demo.blade.php