'boolean', 'is_active' => 'boolean', 'rating' => 'integer', ]; public const TABLE_NAME = 'reviews'; protected $table = self::TABLE_NAME; /* ================= Relationships ================= */ public function images() { return $this->hasMany(ReviewImage::class)->select('id', 'review_id', 'image_path', 'position'); } public function foodItem() { return $this->belongsTo(FoodItem::class)->select('id', 'name', 'image'); } public function customer() { return $this->belongsTo(Customer::class); } }