'/absolute/path/to/postman/collection', * 'openapi' => '/absolute/path/to/openapi/spec', * // If you're using `laravel` type, `html` will be null, and vice versa for `blade`. * 'html' => '/absolute/path/to/index.html/', * 'blade' => '/absolute/path/to/blade/view', * // These are paths to asset folders * 'assets' => [ * 'js' => '/path/to/js/assets/folder', * 'css' => '/path/to/css/assets/folder', * 'images' => '/path/to/images/assets/folder', * ] * ] * * If you disabled `postman` or `openapi`, their values will be null. * * @param callable(array): mixed $callable */ public static function afterGenerating(callable $callable) { Globals::$__afterGenerating = $callable; } /** * Specify a callback that will be used by all FormRequest strategies * to instantiate Form Requests. his callback takes the name of the form request class, * the current Laravel route being processed, and the controller method. * * @param ?callable(string,\Illuminate\Routing\Route,\ReflectionFunctionAbstract): mixed $callable */ public static function instantiateFormRequestUsing(?callable $callable) { Globals::$__instantiateFormRequestUsing = $callable; } /** * Specify a callback that will be called when instantiating an `ExtractedEndpointData` object * in order to normalize the URL. The default normalization tries to convert URL parameters from * Laravel resource-style (`users/{user}/projects/{project}`) * to a general style (`users/{user_id}/projects/{id}`). * The callback will be passed the default Laravel URL, the route object, the controller method and class. * * @param ?callable(string,\Illuminate\Routing\Route,\ReflectionFunctionAbstract,?\ReflectionClass): string $callable */ public static function normalizeEndpointUrlUsing(?callable $callable) { Globals::$__normalizeEndpointUrlUsing = $callable; } }