Skip to content

Instantly share code, notes, and snippets.

@antonioribeiro
Last active August 29, 2015 14:03
Show Gist options
  • Save antonioribeiro/223f661d012b458ab13f to your computer and use it in GitHub Desktop.
Save antonioribeiro/223f661d012b458ab13f to your computer and use it in GitHub Desktop.

I still could not find time to organize Tracker views to properly publish them, but I'm testing Tracker in a playground site and this is where you can get them all:

###Layout

https://github.com/antonioribeiro/acr.com/blob/master/app/views/admin/layout.blade.php

###Views

https://github.com/antonioribeiro/acr.com/tree/master/app/views/admin/tracker

###Controller

https://github.com/antonioribeiro/acr.com/blob/master/app/acr.com/ACR/Controllers/Admin/UsageTracker.php.

###Routes:

Route::group(['namespace' => 'ACR\Controllers'], function()
{
    Route::group(array('prefix' => 'admin'), function()
    {
		Route::group(array('prefix' => 'tracker'), function()
		{
		    Route::any('/', array('as' => 'admin.tracker.index', 'uses' => 'Admin\UsageTracker@index'));

		    Route::get('log/{uuid}', array('as' => 'admin.tracker.log', 'uses' => 'Admin\UsageTracker@log'));

		    Route::get('api/pageviews', array('as' => 'admin.tracker.api.pageviews', 'uses' => 'Admin\UsageTracker@apiPageviews'));

		    Route::get('api/pageviewsbycountry', array('as' => 'admin.tracker.api.pageviewsbycountry', 'uses' => 'Admin\UsageTracker@apiPageviewsByCountry'));
		});
	});
});

###Template

And it's using the sb-admin free template: http://startbootstrap.com/sb-admin.

@ACTwebDesigns
Copy link

Any chance of the models?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment