I am using Laravel.
And I have a controller action, which get the orders' information by date. and sum all the amount of orders, and it will return datas.
And I want to call it in Console\Command script so I don't need to repeat the same code, just get those datas from action.
Please help me how to do it?