PHP code example of bradietilley / laravel-snowflake
1. Go to this page and download the library: Download bradietilley/laravel-snowflake 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/ */
bradietilley / laravel-snowflake example snippets
use BradieTilley\Snowflakes\Eloquent\HasSnowflake;
class SomeModel extends Model
{
use HasSnowflake;
}
$model = SomeModel::create();
$model->id; // 9348975348573485734