PHP code example of floor9design / laravel-casts-uuid
1. Go to this page and download the library: Download floor9design/laravel-casts-uuid 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/ */
floor9design / laravel-casts-uuid example snippets
use Floor9design\LaravelCasts\Uuid as UuidCasts;
protected $casts = [
'uuid' => UuidCasts::class
];
use Ramsey\Uuid\Uuid;
// somewhere in the code:
$uuid = Uuid::uuid4();