From 8ead5a058d8e1bc824d94020e124a5c99f211b23 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 3 Jun 2019 15:30:56 +0200 Subject: [PATCH] #2812 --- src/app/Console/Commands/GenerateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() . '\');'; } } -- 2.39.5