Every Haystack has a
HaystackOptionsclass stored against it. This class is serialized and stored in the database and contains various configuration variables used when processing jobs. You may wish to specify a new custom option by using the
setOptionmethod when building Haystacks.
Since the options are serialized into one column, it's recommended that you only store small amounts of data inside this class, and make sure what you are storing can be serialized.
Inside your jobs, you can use the
getHaystackOptionmethod to retrieve the options.
$this->getHaystackOptions(); // HaystackOptions.php
$this->getHaystackOption('someCustomOption'); // "option-value"