PHP code example of trapzpro / laravel-quick-logger
1. Go to this page and download the library: Download trapzpro/laravel-quick-logger 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/ */
trapzpro / laravel-quick-logger example snippets
return [
'table_prefix' => null,
];
use Trapzpro\QuickLogger\QuickLogger;
$note = QuickLogger::note('Started important task...');
// much focus
$note->end_note = 'Finshed!';
$note->save();
bash
php artisan vendor:publish --tag="quick-logger-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="quick-logger-config"
bash
php artisan vendor:publish --tag="quick-logger-views"