2
Well I need to make one query where I have to bring all the listed items of the month in which we are.
In the query I’ve done I’m bringing them all with status O of OK:
$vendas = Encomenda::where('FlgStEncomenda', 'O')->count();
In my table structure I have a created_at which is the date of creation, composed of data and hora as follows 2016-11-02 16:25:03 through it I need to do the research. So I have to return all the vendas registered this month.
You’re wearing the Laravel 5.3?
– novic
No, I’m using the 5.2
– Renan Rodrigues