public function deleteExpired()
    {
        $expired = Carbon::now()->subSeconds($this->expires);

        $this->makeDelete()
                ->where('o.createdAt < :expired')
                ->setParameter('expired', $expired)
                ->getQuery()
                ->execute();
    }
public function deleteExpired()
    {
        $expired = Carbon::now()->subSeconds($this->expires);

        $this->makeDelete()
                ->where('o.createdAt < :expired')
                ->setParameter('expired', $expired)
                ->getQuery()
                ->execute();
    }
public function deleteExpired ( ) { $ expired = Carbon :: now ( ) -> subSeconds ( $ this -> expires ) ; $ this -> makeDelete ( ) -> where ( 'o.createdAt < :expired' ) -> setParameter ( 'expired' , $ expired ) -> getQuery ( ) -> execute ( ) ; }
Delete expired reminders.
@return void
Delete expired reminders .