protected function prepareModel()
{
if (!$this->model) {
throw new MissingArgumentException('model property should be filled');
}
$this->model = new $this->model();
$traits = class_uses($this->model);
if (!isset($traits[Searchable::class])) {
throw new InvalidArgumentException(get_class($this->model) . ' does not use the searchable trait');
}
}