PHP code example of cavespoidy / laralogger
1. Go to this page and download the library: Download cavespoidy/laralogger 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/ */
cavespoidy / laralogger example snippets
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use cavespoidy\LaraLogger\LaraLogger;
class User extends Authenticatable
{
use LaraLogger;
}
User::find(1)->delete(); // For this LaraLogger is made for.
User::where('id',1)->delete(); // For this LaraLogger don't work.
php artisan migrate