Skip to content
Gravitano edited this page Aug 9, 2014 · 6 revisions

In this package there are 2 events.

The first is admin::routes, this event is useful to register a single article the route, that route is also used to display the page. To call this event simply paste the following code in your app/routes.php file. I suggest to put this code at the bottom of the other route, to avoid conflicts with another route.

// app/routes.php
Event::fire('admin::routes');

The second is admin::visitors.track, this event is used to track the number of hits and visitors by the unique IP address. To call this event simply paste the following code in your app/filters.php at App::after route.

// app/filters.php
App::after(function()
{
    Event::fire('admin::visitors.track');
});

The last is admin::menus, this event is used to include/register the default menus.

// app/menus.php
Event::fire('admin::menus');
Clone this wiki locally