ConstList of controller names that should always be generated in singular form. These are typically system/admin controllers or special-purpose controllers that don't represent plural resources.
Creates the entity path and name from user input. Parses the entity name to separate directory path from the actual name, handling file extensions and nested paths.
The entity name which may include path and extension
Object containing the parsed path and name
Converts an entity name to a database table name. Removes 'table' suffix, converts to model name format, then pluralizes and converts to snake_case.
The entity name to convert
Database table name in snake_case plural form
Converts an entity name to a model class name. Removes file extension and 'model' suffix, singularizes, and converts to PascalCase.
The entity name to convert
Model class name in PascalCase singular form
Converts an entity name to a model file name. Uses the model name and converts to snake_case with .ts extension.
The entity name to convert
Model file name in snake_case with .ts extension
Converts an entity name to a controller class name. Removes file extension and 'controller' suffix, then applies singularization rules based on special names list or parameter.
The entity name to convert
Force singular form regardless of special names
Controller class name in PascalCase with 'Controller' suffix
Converts an entity name to a controller file name. Uses the controller name and converts to snake_case with .ts extension.
The entity name to convert
Force singular form for the controller name
Controller file name in snake_case with .ts extension
Converts an entity name to an event class name. Removes file extension and 'event' suffix, then converts to PascalCase.
The entity name to convert
Event class name in PascalCase
Converts an entity name to a listener class name. Removes file extension and 'listener' suffix, then converts to PascalCase.
The entity name to convert
Listener class name in PascalCase
Converts an entity name to a middleware class name. Removes file extension and 'middleware' suffix, then converts to PascalCase with 'Middleware' suffix.
The entity name to convert
Middleware class name in PascalCase with 'Middleware' suffix
Converts an entity name to a middleware file name. Uses the middleware name and converts to snake_case with .ts extension.
The entity name to convert
Middleware file name in snake_case with .ts extension
Converts an entity name to a provider class name. Removes file extension and 'provider' suffix, singularizes, then converts to PascalCase with 'Provider' suffix.
The entity name to convert
Provider class name in PascalCase with 'Provider' suffix
Converts an entity name to a provider file name. Uses the provider name and converts to snake_case with .ts extension.
The entity name to convert
Provider file name in snake_case with .ts extension
Converts an entity name to a policy class name. Removes file extension, 'policy' and 'model' suffixes, singularizes, then converts to PascalCase with 'Policy' suffix.
The entity name to convert
Policy class name in PascalCase with 'Policy' suffix
Converts an entity name to a factory class name. Removes file extension, 'factory' and 'model' suffixes, singularizes, then converts to PascalCase with 'Factory' suffix.
The entity name to convert
Factory class name in PascalCase with 'Factory' suffix
Converts an entity name to a service class name. Removes file extension, 'service' and 'model' suffixes, singularizes, then converts to PascalCase with 'Service' suffix.
The entity name to convert
Service class name in PascalCase with 'Service' suffix
Converts an entity name to a seeder class name. Removes file extension, 'seeder' and 'model' suffixes, singularizes, then converts to PascalCase with 'Seeder' suffix.
The entity name to convert
Seeder class name in PascalCase with 'Seeder' suffix
Converts an entity name to a command terminal name. Creates a namespaced command name using dash-case format, where the first part becomes the namespace and remaining parts are joined with colons.
The entity name to convert
Command terminal name in namespace:command format
Converts an entity name to a command class name. Removes file extension and 'command' suffix, then converts to PascalCase.
The entity name to convert
Command class name in PascalCase
Converts an entity name to a validator class name. Removes file extension and 'validator' suffix, singularizes, then converts to PascalCase.
The entity name to convert
Validator class name in PascalCase
Converts an entity name and action to a validator action name. Creates a camelCase name by prefixing with action and suffixing with 'validator'.
The entity name to convert
The action name (e.g., 'create', 'update')
Validator action name in camelCase
Converts an entity name to an exception class name. Removes file extension and 'exception' suffix, then converts to PascalCase with 'Exception' suffix.
The entity name to convert
Exception class name in PascalCase with 'Exception' suffix
Converts an entity name to an exception file name. Uses the exception name and converts to snake_case with .ts extension.
The entity name to convert
Exception file name in snake_case with .ts extension
Converts an entity name to a mailer class name. Removes file extension and various suffixes, then converts to PascalCase with the specified type suffix.
The entity name to convert
The mailer type ('notification' or 'provision')
Mailer class name in PascalCase with type suffix
Converts an entity name to a mailer file name. Uses the mailer name and converts to snake_case with .ts extension.
The entity name to convert
The mailer type ('notification' or 'provision')
Mailer file name in snake_case with .ts extension
Converts an entity name to a class-based mail name. Removes file extension and various suffixes, then converts to PascalCase with the specified type suffix. Similar to mailerName but with more flexible type.
The entity name to convert
The mail type (default: 'notification')
Mail class name in PascalCase with type suffix
Converts an entity name to a class-based mail file name. Uses the mail name and converts to snake_case with .ts extension.
The entity name to convert
The mail type (default: 'notification')
Mail file name in snake_case with .ts extension
Converts an entity to a test group name. Creates a human-readable test group name by combining path and name, removing extensions and converting to sentence case.
Object containing path and name properties
Test group name in sentence case
Converts an entity name to a test file name. Removes file extension and '.spec' suffix, converts to snake_case, then adds '.spec.ts' extension.
The entity name to convert
Test file name in snake_case with .spec.ts extension
Converts an entity name to a view template file name. Removes file extension, converts to snake_case, and adds '.edge' extension for Edge template files.
The entity name to convert
View file name in snake_case with .edge extension
Generators used for scaffolding various AdonisJS entities. Provides utilities for creating standardized names, file names, and paths for models, controllers, middleware, and other framework components.