PHP code example of digitalcloud / laravel-blameable
1. Go to this page and download the library: Download digitalcloud/laravel-blameable 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/ */
Schema::table($table, function (Blueprint $table) {
// this will add created_by, updated_by and updated_by columns on your table.
$table->blameable();
});