Package Data | |
---|---|
Maintainer Username: | davin-bao |
Maintainer Contact: | davin.bao@gmail.com (davin-bao) |
Package Create Date: | 2014-05-12 |
Package Last Update: | 2016-08-19 |
Language: | HTML |
License: | MIT |
Last Refreshed: | 2024-11-20 03:03:11 |
Package Statistics | |
---|---|
Total Downloads: | 22 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 1 |
Statistics package provides a simple way to custom any statistics to Laravel4.
In the require
key of composer.json
file add the following
"davin-bao/statistics": "dev-master"
Run the Composer update comand
$ composer update
In your config/app.php
add 'DavinBao\Statistics\StatisticsServiceProvider','
to the end of the $providers
array
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
...
'DavinBao\Statistics\StatisticsServiceProvider',
),
At the end of config/app.php
add 'Statistics' => 'DavinBao\Statistics\StatisticsFacade'
to the $aliases
array
'aliases' => array(
'App' => 'Illuminate\Support\Facades\App',
'Artisan' => 'Illuminate\Support\Facades\Artisan',
...
'Statistics' => 'DavinBao\Statistics\StatisticsFacade',
),
Now generate the statistics migration
$ php artisan statistics:migration
It will generate the <timestamp>_statistics_setup_tables.php
migration. You may now run it with the artisan migrate command:
$ php artisan migrate
After the migration, statistics tables will be present.
$ php artisan statistics:views
$ php artisan statistics:routes
Go to /admin/statistics, you can change the style or add others functions