PHP code example of abhimanyu / hive

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

    

abhimanyu / hive example snippets


protected $middlewareGroups = [
    'web' => [
        \Abhimanyu\Hive\Middleware\TrackUserActivity::class,
    ],
];



use Abhimanyu\Hive\Services\ActivityLogger;

ActivityLogger::log(auth()->user(), 'Exported activity logs');
bash
php artisan vendor:publish --tag=config --provider="Abhimanyu\Hive\UserActivityServiceProvider"
bash
php artisan vendor:publish --tag=migrations --provider="Abhimanyu\Hive\UserActivityServiceProvider"
bash
php artisan migrate
bash
php artisan vendor:publish --tag=views --provider="Abhimanyu\Hive\UserActivityServiceProvider"