I'm currently trying to return the list of Artisan commands within my Laravel application. I tried running return var_dump(Artisan::('list'));
with success, but my response was unexpected. It came back as int(0)
or 0
when I took out the var_dump()
function. When I run this same command in my console, it returns the list of artisan commands successfully.
Any thoughts on why this might be happening?