I am using Laravel 5.5 to create a simple queue that will resize an uploaded image. I cannot figure out how to pass parameters to the queue, such as the temporary file location of the image. My colleagues have used older versions of Laravel where a string could be passed to a job eg:
$this->dispatch(new ExampleJob($foo));
However, in Laravel 5.5 passing a string in the same way, eg:
ExampleJob::dispatch($foo);
will trigger a 'BindingResolutionException' exception as it's expecting a model to serialize.
If that's the case, how do I pass anything else in?