public function cottageStatus() return $this->belongsTo(CottageStatus::class);这是querywchih check if period(从@ArrivalDate到@DepartureDate)在预约表中是否可用: JOIN reservations R
ON R.id = RC.reservatio
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL serverversion for the right syntax to use near 'a','a','a','a','a','desc')' at line 1mysql_query("insertinto
ro