PHPackages                             todstoychev/calendar-events - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. todstoychev/calendar-events

ActiveLibrary[Framework](/categories/framework)

todstoychev/calendar-events
===========================

Full calendar events module for Laravel

1.0.0(8y ago)166406[1 issues](https://github.com/todstoychev/calendar-events/issues)MITPHPPHP &gt;=5.5.9

Since Jan 28Pushed 8y ago6 watchersCompare

[ Source](https://github.com/todstoychev/calendar-events)[ Packagist](https://packagist.org/packages/todstoychev/calendar-events)[ RSS](/packages/todstoychev-calendar-events/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (7)Dependencies (4)Versions (11)Used By (0)

[![Build Status](https://camo.githubusercontent.com/d43948f9ead30c08a61e4f11c99b813a6616cc86afceacb6c64b41b4eb401b05/68747470733a2f2f7472617669732d63692e6f72672f746f6473746f79636865762f63616c656e6461722d6576656e74732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/todstoychev/calendar-events)

Laravel 5 module to integrate a [fullcalendar](http://fullcalendar.io/) javascript plugin. It provides simple way to store events in the database and supports event repeat.

Installation
============

[](#installation)

Use the standard way `composer require todstoychev/calendar-events`.

Register the service provider at your Laravel `config/app.php`. You should add `Todstoychev\CalendarEvents\CalendarEventsServiceProvider::class`.

Run `php artisan vendor:publish` to publish config and other assets.

This module provides also 3 migration files. It will be necessary to run them `php artisan migrate`.

Usage
=====

[](#usage)

Forms
-----

[](#forms)

This module comes with a ready to use form template. The form can be used as edit and add form. In your blade use `@include('calendar-events::form')` to include it in your page. Also feel free to override and extend this template.

To use this form add to your page you will need a javascript file provided from the module. After running vendor publish command you should be able to find `public/js/calendar-events.js`. This script is necessary to control provided form. It contains simple JS object with few methods inside.

Controller
----------

[](#controller)

Since this module has service provider at the container, you can access CalendarEventsService::class in your controller like this:

```
protected $calendarEventsService;

    public function __construct(CalendarEventsService $calendarEventsService)
    {
        $this->calendarEventsService = $calendarEventsService;
    }
```

This the main module class that contains all the necessary methods to interact with.

Module provides a request class which can be used to validate your input data. Here an example usage of how to create new event.

```
