'datetime', ]; public function isAdmin() { return $this->admin; } public function cart() { return $this->belongsToMany(Product::class, "cart_items", "userID", "productID"); } public function orders() { return $this->hasMany(Order::class, "userID"); } }