Use appzcoder/crud-generator package in Modules nwidart

55 views Asked by At

i want to use appzcoder/crud-generator in modules nwidart , but i cant change the path of controllers and views ,.... how can i create code files in modules path ?

Thanks

I changed the following path in the vendor/appzcoder/crud-generator/src/commands/CrudCotrollerCommand.php , but the program crashed

protected function getDefaultNamespace($rootNamespace) 
{
    return $rootNamespace . '\\' . ($this->option('controller-namespace') ? $this->option('controller-namespace') : 'Http\Controllers');
}

to

protected function getDefaultNamespace($rootNamespace)
{
    $rootNamespace = '/Module/Crud'
    return $rootNamespace . '\\' . ($this->option('controller-namespace') ? $this->option('controller-namespace') : 'Http\Controllers');
}
0

There are 0 answers