PHP code example of drewlabs / changelog-eloquent
1. Go to this page and download the library: Download drewlabs/changelog-eloquent 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/ */
drewlabs / changelog-eloquent example snippets
// config/app.php
return [
// ...
'providers' => [
// ...
\Drewlabs\Changelog\Eloquent\ServiceProvider::class,
// ...
]
];
// ...
use Drewlabs\Changelog\Eloquent\Loggable;
use Drewlabs\Changelog\Loggable as AbstractLoggable;
class MyModel implements AbstractLoggable {
use Loggable;
// This method is