*/ protected $fillable = ['device_id', 'title', 'device_type', 'description', 'accessories', 'rz_username_buyer', 'serial_number', 'image_url']; //Timestamps are disabled. public $timestamps = false; public function owners() { return $this->hasMany(OwnerTransaction::class, 'device_id'); } public function locations() { return $this->hasMany(LocationTransaction::class, 'device_id'); } public function purchasing() { return $this->belongsTo(PurchasingInformation::class, 'device_id'); } }