Modelo de base de datos en lumen
This commit is contained in:
16
backend/app/Traits/UuidPrimaryKey.php
Normal file
16
backend/app/Traits/UuidPrimaryKey.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
trait UuidPrimaryKey {
|
||||
|
||||
public function getKeyType()
|
||||
{
|
||||
return 'string';
|
||||
}
|
||||
|
||||
public function getIncrementing()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user