Use Snowflake primary keys with Eloquent
mainTo use snowflake identifiers as primary keys in your Eloquent models, use the Kra8\Snowflake\HasSnowflakePrimary trait. This trait automatically sets the $incrementing property to false and configures the model to use the snowflake type.
Ensure your database migration uses the id() column type (which maps to a 64-bit integer).
namespace App;
use Kra8\Snowflake\HasSnowflakePrimary;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use HasSnowflakePrimary;
}