/* Decoded by unphp.net */ self::$model, 'fqn' => self::$fqn]; } } private static function setModel(string $model): void { self::$model = str($model)->replaceMatches('#[^A-Za-z0-9\\]#', '')->toString(); self::parseFqn(); self::checkIfModelExists(); } private static function parseFqn(): void { self::$fqn = 'App\Models\' . self::$model; if (str_contains(self::$model, '\')) { self::$fqn = self::$model; self::$model = str(self::$fqn)->rtrim('\')->afterLast('\'); } } private static function checkIfModelExists(): void { if (!class_exists(self::$fqn)) { error("Cannot find class [" . self::$fqn . "]. Try again or press Ctrl+C to abort."); self::$model = ''; self::$fqn = ''; } } } ?>