*/ protected $fillable = [/* 'device_id', */'title', 'device_type', 'description', 'accessories', 'rz_username_buyer', 'serial_number', 'image_url']; //The data type of the auto-incrementing ID. protected $keyType = 'string'; //Timestamps are disabled. public $timestamps = false; public function owners(): HasMany { return $this->hasMany(OwnerTransaction::class, 'device_id', 'device_id'); } public function locations(): HasMany { return $this->hasMany(LocationTransaction::class, 'device_id', 'device_id'); } public function purchasing(): HasOne { return $this->hasOne(PurchasingInformation::class, 'device_id', 'device_id'); } }