skip to Main Content

“Can PHP filter entities by today’s date?”

This is what I tried: $time = date('Y/m/d'); $alerts = $repository->findBy(['datum' => $time]); and $time = date('Y/m/d'); $lessons = $repository->createQueryBuilder('q') ->where('q.datum LIKE currentDate') ->setParameter('currentDate', $time); For some reason those don't work and I have no idea why. It should be…

VIEW QUESTION

Can MySQL order & group rows together?

Having problem with complex order. Here is structure and data: CREATE TABLE `mail_test` ( `id` int(10) UNSIGNED NOT NULL, `account_id` int(10) UNSIGNED NOT NULL, `score` float UNSIGNED NOT NULL, `from` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; INSERT INTO `mail_test`…

VIEW QUESTION

Why aren’t the correct records populating in Laravel using SQL query?

I am trying to filter data with search terms. But its not populate data. Any one can help me with this? Here is my code: $query = Lesson::select('lesson.*') ->join('lesson_language', 'lesson_language.lesson_id', 'lesson.id') ->leftJoin('content', 'content.lesson_id', 'lesson.id') ->leftJoin('lesson_role', 'lesson_role.lesson_id', 'lesson.id') ->leftJoin('lesson_brand', 'lesson_brand.lesson_id', 'lesson.id')…

VIEW QUESTION
Back To Top
Search