'datetime', ]; public function restaurant() { return $this->belongsTo(Restaurant::class); } public function booking() { return $this->belongsTo(Booking::class); } public function toArray() { return [ 'id' => intval($this->id), 'restaurant_id' => intval($this->restaurant_id), 'booking_id' => $this->booking_id, 'score1' => $this->score1, 'score2' => $this->score2, 'score3' => $this->score3, 'score4' => $this->score4, 'score5' => $this->score5, 'feedback' => $this->feedback, 'response' => $this->response, 'response_date' => $this->response_date, 'date_created' => $this->date_created ]; } }