I am wondering if there's any way to run an ad-hoc command in laravel? like in tinker, but without tinker?
I want to be able to run an ad-hoc command but without using tinker ?
Example:
"App\Post::orderBy('timestamp', 'desc')->first()"
I want to run this every 5 seconds?