From ee25bd3a2f497b7a81ee4a83535a899d0dc97e6e Mon Sep 17 00:00:00 2001 From: Nicolas Widart Date: Fri, 17 Jul 2015 15:20:49 +0200 Subject: [PATCH] Hardcoding the entity type since laravel choice method is broken --- Console/ModuleScaffoldCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Console/ModuleScaffoldCommand.php b/Console/ModuleScaffoldCommand.php index fa0304c..3049b42 100644 --- a/Console/ModuleScaffoldCommand.php +++ b/Console/ModuleScaffoldCommand.php @@ -59,7 +59,8 @@ public function fire() */ private function askForEntities() { - $this->entityType = $this->choice('Do you want to use Eloquent or Doctrine ?', ['Eloquent', 'Doctrine'], 0); + // $this->entityType = $this->choice('Do you want to use Eloquent or Doctrine ?', ['Eloquent','Doctrine'], 0); # this->choice broken in laravel + $this->entityType = 'Eloquent'; do { $entity = $this->ask('Enter entity name. Leaving option empty will continue script.', ''); if (!empty($entity) && $entity !== '') {