PHP code example of aschmelyun / larametrics

1. Go to this page and download the library: Download aschmelyun/larametrics 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/ */

    

aschmelyun / larametrics example snippets


Aschmelyun\Larametrics\LarametricsServiceProvider::class

php artisan vendor:publish --provider="Aschmelyun\Larametrics\LarametricsServiceProvider"
php artisan migrate

\Aschmelyun\Larametrics\Larametrics::routes();

// routes/web.php
Route::group(['middleware' => 'auth', 'prefix' => 'admin'], function() {
    \Aschmelyun\Larametrics\Larametrics::routes();
});