PHP code example of tripteki / laravelphp-log

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

    

tripteki / laravelphp-log example snippets


use Tripteki\Log\Contracts\Repository\Admin\ILogRepository as ILogAdminRepository;
use Tripteki\Log\Contracts\Repository\ILogRepository;

$logAdminRepository = app(ILogAdminRepository::class);

// $logAdminRepository->get(5); //
// $logAdminRepository->all(); //

$repository = app(ILogRepository::class);
// $repository->setUser(...); //
// $repository->getUser(); //

// $repository->archive(5); //
// $repository->unarchive(5); //
// $repository->get(5); //
// $repository->all(); //

php artisan vendor:publish --tag=tripteki-laravelphp-log

php artisan vendor:publish --tag=tripteki-laravelphp-log-migrations

php artisan migrate

php artisan vendor:publish --tag=tripteki-laravelphp-log-tests