PHP code example of prajwal89 / lara-click-insights

1. Go to this page and download the library: Download prajwal89/lara-click-insights 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/ */

    

prajwal89 / lara-click-insights example snippets


namespace App;

use Prajwal89\LaraClickInsights\Traits\ImpressionTrackable;
use Illuminate\Database\Eloquent\Model;

class YourEloquentModel extends Model
{
    use ImpressionTrackable;

    ...
}

return [
    // Configuration options...
];
bash
php artisan vendor:publish --tag=lara-click-insights-assets
bash
php artisan vendor:publish --tag=lara-click-insights-migrations
bash
php artisan vendor:publish --tag=lara-click-insights-config
bash
php artisan vendor:publish