Quantcast
Channel: How To Add Interval 30 Days in Laravel (MYSQL) - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Rwd for How To Add Interval 30 Days in Laravel (MYSQL)

The reason you're not getting the results you want is because you're using where instead of whereRaw. In this case your query going to return:select * from `projects` where end_date BETWEEN...

View Article


Answer by user3532758 for How To Add Interval 30 Days in Laravel (MYSQL)

This may not be the solution you would have preferred, (I do not know why your current query would not work and as @tadman suggested, I too suggest checking the produced query), but an alternative...

View Article


Answer by Paras Raiyani for How To Add Interval 30 Days in Laravel (MYSQL)

Try with whereRaw() sometime where() not properly work DB::raw()$highlightProject = project::select('*')->whereRaw(DB::raw('end_date BETWEEN CURRENT_DATE() AND DATE_ADD(CURRENT_DATE(), INTERVAL 30...

View Article

How To Add Interval 30 Days in Laravel (MYSQL)

Hi I got stack when i want to show data using interval in Laravel, I have this code and it's running well on Mysql and showing what i want. but how to implement the mysql code to laravel ?this is mySql...

View Article
Browsing all 4 articles
Browse latest View live