PHP code example of mblsolutions / report

1. Go to this page and download the library: Download mblsolutions/report library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mblsolutions / report example snippets


Report::routes();

Report::manageRoutes();

Report::viewRoutes();

Report::exportRoutes();

Route::middleware(['admin'])->group(function () {
    Report::manageRoutes();
});

Route::middleware(['user'])->group(function () {
    Report::viewRoutes();
});

Route::middleware(['web'])->group(function () {
    Report::exportRoutes();
});

Route::middleware(['can:manage-reports'])->group(function () {
    Report::manageRoutes();
});

Route::middleware(['can:view-reports'])->group(function () {
    Report::viewRoutes();
});

[
    'models' => [
        \App\User::class,
        \App\Order::class
    ]
]

$schedule->command(\MBLSolutions\Report\Console\Commands\DispatchScheduledReportsCommand::class)->hourly();
bash
php composer 
bash
php artisan vendor:publish --tag=report-config
bash
php artisan vendor:publish --tag=report-migrations
bash
php artisan migrate