PHP code example of c4studio / loggr

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

    

c4studio / loggr example snippets


C4studio\Loggr\LoggrServiceProvider::class,

'Loggr' => C4studio\Loggr\Facades\Loggr::class,

Loggr::add('Message');

Loggr::add('Message', Auth::user());

Loggr::add('Message', Auth::user(), serialize($myArray));

loggr('Message');

loggr('Message', Auth::user());

Loggr::get();

Loggr::owner(Auth::user());

Loggr::interval(\Carbon\Carbon::yesterday(), \Carbon\Carbon::today());

Loggr::interval(\Carbon\Carbon::yesterday());
Loggr::interval(null, \Carbon\Carbon::yesterday());

Loggr::query()->orderBy('timestamp', 'desc')->take(2)->get();
app/config/app.php