One Hat Cyber Team
Your IP :
3.21.166.125
Server IP :
162.241.123.123
Server :
Linux sh016.hostgator.in 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home1
/
saicsazq
/
keedoai.com
/
app
/
Models
/
View File Name :
EmbeddingCollection.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; use Ramsey\Uuid\Uuid; class EmbeddingCollection extends Model { use HasFactory; public $fillable = ['name', 'meta_data']; public $incrementing = false; public $keyType = "string"; protected static function booted() { static::creating(function ($model) { $model->id = Uuid::uuid4()->toString(); }); } public function toArray() { $this->meta_data = json_decode($this->meta_data); return $this; } public function chats(): HasMany { return $this->hasMany(Chat::class); } }