1. Go to this page and download the library: Download delatbabel/applog 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/ */
delatbabel / applog example snippets
protected function bootstrappers()
{
$bootstrappers = parent::bootstrappers();
// Swap out the default Laravel ConfigureLogging class with our own.
foreach ($bootstrappers as $key => $value) {
if ($value == 'Illuminate\Foundation\Bootstrap\ConfigureLogging') {
$bootstrappers[$key] = 'Delatbabel\Applog\Bootstrap\ConfigureLogging';
}
}
return $bootstrappers;
}
use Delatbabel\Applog\Models\Auditable;
class MyModel
{
use Auditable;
// ... remainder of the model code
}