From: Vincent Vanwaelscappel Date: Mon, 3 Jun 2019 13:30:56 +0000 (+0200) Subject: #2812 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8ead5a058d8e1bc824d94020e124a5c99f211b23;p=cubist_cms-back.git #2812 --- diff --git a/src/app/Console/Commands/GenerateCommand.php b/src/app/Console/Commands/GenerateCommand.php index b4d1449..fbdde82 100644 --- a/src/app/Console/Commands/GenerateCommand.php +++ b/src/app/Console/Commands/GenerateCommand.php @@ -57,7 +57,7 @@ class GenerateCommand extends CubistCommand { $this->line('Generate code of ' . get_class($model)); $model->generateCode(); - $this->_routes[] = 'CRUD::resource(\'' . $model->getOption('name') . '\', \'' . $model->getControllerClass() . '\');'; + $this->_routes[] = 'CRUD::resource(\'' . $model->getOption('route', $model->getOption('name')) . '\', \'' . $model->getControllerClass() . '\');'; } }