File manager - Edit - /var/www/payraty/hris/vendor/munafio/chatify/src/Traits/UUID.php
Back
<?php namespace Chatify\Traits; use Illuminate\Support\Str; trait UUID { protected static function boot() { parent::boot(); static::creating(function ($model) { $model->{$model->getKeyName()} = (string) Str::uuid(); }); } public function getIncrementing () { return false; } public function getKeyType () { return 'string'; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings