skip to Main Content

Postgresql – Select Current Quarter From Quarter Dates table

I have the following table: Quarter Start 30/12/2016 31/03/2017 30/06/2017 29/09/2017 29/12/2017 30/03/2018 29/06/2018 28/09/2018 28/12/2018 29/03/2019 28/06/2019 27/09/2019 27/12/2019 27/03/2020 26/06/2020 25/09/2020 01/01/2021 02/04/2021 02/07/2021 01/10/2021 31/12/2021 01/04/2022 01/07/2022 30/09/2022 30/12/2022 24/03/2023 30/06/2023 29/09/2023 29/12/2023 29/03/2024 28/06/2024 27/09/2024 03/01/2025…

VIEW QUESTION

Laravel Eloquent for where Like

I'm trying to filter account in laravel.1 user can have many accounts with different format. It doesnt seem to work.The query: $accounts = $user->account()->where('account_no','like', ['34%','35%','3303%','3304%'])->get(); i'm wondering if this can be done or not?

VIEW QUESTION
Back To Top
Search