I'm brand new to laravel, so this approach may be quite naive. I searched for a while and I'm pretty much stuck. I've gotten plenty of output from the randomstring command via stdout, but I can't seem to capture it.
But beware there will be new lines at the start and end of the output, here is the output from my console:
(output of the $this->output->fetch statement)
@usman I keep forgetting about being forced to use $this in PHP. I'm so used to C# where the language is smart enough to know what you want without it... Your solution worked very well. Thanks!