needsExecution()) { return []; } $results = $this->execute(); return []; } /** * Restituisce l'hook Eloquent relativo alla classe. * * @return Hook|null */ protected static function getHook() { $class = get_called_class(); $hook = Hook::where('class', $class)->first(); return $hook; } }