Reportico Laravel Module

Installation Laravel Version 5.x

To install the Reportico package for Laravel 5.2 onwards use composer to download the reportico/laravel-reportico module

Use composer to install :-

    composer require reportico/laravel-reportico "~5.2"

Then edit your config/app.php file and add the following in the providers section :-

        Reportico\Reportico\ReporticoServiceProvider::class,

After download ensure that the following folders are writeable:-

  • {LARAVEL_ROOT}/vendor/reportico/reportico/src/Reportico/Reportico/templates_c
  • {LARAVEL_ROOT}/vendor/reportico/reportico/src/Reportico/Reportico/projects/admin

Then move the reportico assets into the public area by tuning artisan in the laravel project root folder :-

php artisan vendor:publish
After installing you can test your installation by pointing your browser at :-
 http://laravel_app_url/reportico

** Important - Using Reportico with auth

By default reportico allows access without requiring user login, in other words does not make use of the auth middleware. If you wish to ensure that reportico is accessible only through the auth module then you need to modify the packages routing. Edit file {LARAVEL_ROOT}/vendor/laravel-reportico/src/Reportico/Reportico/ReporticoServiceProvider.php and around line 34 you will see
        //\Route::group(['middleware' => ['web','auth']], function() {
        \Route::group(['middleware' => ['web']], function() {
If you uncomment the first line and comment the second then "auth" will be added to the middleware required when Reportico runs and subscequently a user will have to login to access reportico. Reportico also provides other routes to allow you to directly access reports and report projects you have created. You may wish to hide the basic "reportico" admin route behind auth login but expose direct access to individual reports and projects to the public. In this case you will need to modify the file to create route groups giving web middleware to the public routes only, and web and auth to those that require login/

Installation Laravel Version 5.1

To install the Reportico package for Laravel 5.1 use composer to download the reportico/laravel-reportico module

Use composer to install :-

    composer require reportico/laravel-reportico "~5.1"

Then edit your config/app.php file and add the following in the providers section :-

        Reportico\Reportico\ReporticoServiceProvider::class,

After download ensure that the following folders are writeable:-

  • {LARAVEL_ROOT}/vendor/reportico/reportico/src/Reportico/Reportico/templates_c
  • {LARAVEL_ROOT}/vendor/reportico/reportico/src/Reportico/Reportico/projects/admin

Then move the reportico assets into the public area by tuning artisan in the laravel project root folder :-

php artisan asset:publish
then you need to exclude reportico from session token validation by editing:-
app/Http/Middleware/VerifyCsrfToken.php
and adding into the $except array:-
protected $except = [
    //
    ...
    'reportico/*',
];
After installing you can test your installation by pointing your browser at :-
 http://laravel_app_url/reportico

Installation Laravel Version 4.2

To install the Reportico Laravel use composer to download the reportico/laravel-reportico module

Edit the composer.json file in your Laravel root folder and add the following :-

    composer require reportico/laravel-reportico "4.3"

Then edit your app/config/app.php file and add the following in the providers section :-

        'Reportico\Reportico\ReporticoServiceProvider',

After download ensure that the following folders are writeable:-

  • {LARAVEL_ROOT}/vendor/reportico/reportico/src/Reportico/Reportico/templates_c
  • {LARAVEL_ROOT}/vendor/reportico/reportico/src/Reportico/Reportico/projects/admin

Then move the reportico assets into the public area by tuning artisan in the laravel project root folder :-

php artisan asset:publish




Post-Installation Configuration

After installing you can test your installation by pointing your browser at :-

 http://laravel_app_url/reportico



You should see something like :-

Enter an admin password. This is the password you need to enter to access admin mode, which allows you to create report projects and reports. After setting the password, you neeed to login using the password just entered ..

then you have access to the full administrator page :

Now you can read the Reportico documentation, start designing reports and embed them in your site pages.

Getting Started >>