[input_key1, input_key2]]. * * @var array */ public $relations = []; public function startReadAt($date) { return $this->where("notification_records.read_at", ">=", $date); } public function endReadAt($date) { return $this->where("notification_records.read_at", "<", $date); } public function startNotificationAt($date) { return $this->where("notifications.created_at", ">=", $date); } public function endNotificationAt($date) { return $this->where("notifications.created_at", "<", $date); } public function readStatus($status) { return !$status ? $this->whereNull("notification_records.read_at") : $this->whereNotNull("notification_records.read_at"); } }