PHP code example of yark / yark-uuid-model
1. Go to this page and download the library: Download yark/yark-uuid-model 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/ */
yark / yark-uuid-model example snippets
namespace App;
use YarkHQ\LaravelUuidModel\HasUuid;
class Book extends Eloquent
{
use HasUuid;
}
namespace App;
use YarkHQ\LaravelUuidModel\HasUuid;
class Book extends Eloquent
{
use HasUuid;
protected $uuidColumn = 'uuid_key';
}
namespace App;
use YarkHQ\LaravelUuidModel\HasUuid;
class Book extends Eloquent
{
use HasUuid;
protected $routeKeyName = 'slug';
}