PHP code example of jacobcyl / laravel-counter

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

    

jacobcyl / laravel-counter example snippets


    Jacobcyl\ViewCounter\ViewCounterServiceProvider::class,

    php artisan vendor:publish 
    php artisan migrate
  
    $model->view()
 

    protected function schedule(Schedule $schedule)
    {
        $schedule->command('counter:sync')->dailyAt('23:50');
    }