1. Go to this page and download the library: Download lase-peco/records 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/ */
lase-peco / records example snippets
php artisan migrate
record('Oh, Something happened here!') // yes, it is that simple!
use LasePeCo\Records\Models\Record;
Record::all();
use LasePeCo\Records\Models\Record;
$record = Record::all()->last();
$record->subject; //returns an instance of an eloquent model
$record->causer; //returns an instance of an eloquent model
$record->properties; //returns an array ['someProperty' => 'someValue']
$record->message; //returns 'Oh, Something happened here!'