File manager - Edit - /var/www/ratemypay/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php
Back
<?php namespace Illuminate\Database\Eloquent\Concerns; use Illuminate\Support\Str; trait HasUlids { use HasUniqueStringIds; /** * Generate a new unique key for the model. * * @return string */ public function newUniqueId() { return strtolower((string) Str::ulid()); } /** * Determine if given key is valid. * * @param mixed $value * @return bool */ protected function isValidUniqueId($value): bool { return Str::isUlid($value); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings