Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The command "infyom:scaffold" does not exist. #61

Open
nkhcbstech opened this issue Feb 23, 2021 · 4 comments
Open

The command "infyom:scaffold" does not exist. #61

nkhcbstech opened this issue Feb 23, 2021 · 4 comments

Comments

@nkhcbstech
Copy link

I have integrated the generator-builder. When I click button generate I get error message like The command "infyom:scaffold" does not exist.

@josiahke
Copy link

image

@alifaraun
Copy link

image

It works , thanks

@Sunitsarode
Copy link

I also got same issue while clicking on "Generate Button". I am using laravel 10. My kernel.php code is below.

command('inspire')->hourly(); } /** * Register the commands for the application. */ protected function commands(): void { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }

@bolijesus
Copy link

Simplemente para que funcione, copia el archivo que esta en la ruta vendor\infyomlabs\laravel-generator\src\InfyOmGeneratorServiceProvider.php en la carpeta app\Providers.

Una vez copiado el archivo, cambiamos en namespace de InfyOm\Generator a App\Providers luego lo registramos en el array de providers que esta en la ruta config\app.php (Debemos asegurarnos que al registrar el provider, se importe el namespace apuntando a App\Providers)

Ahora en el archivo copiado InfyOmGeneratorServiceProvider.php nos dirigimos a la funcion privada llamada registerCommands() y eliminamos el condicional if (este condicional pregunta si la app no no esta corriendo en consola o CLI entonces return)

Una vez eliminado ese condicional, podemos usar esos comandos desde la aplicacion visual o en este caso usando Generator GUI Interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants