Skip to content

Commit 4bcd09f

Browse files
fix the bug on mount the list of attr schema -view
1 parent f9f19e6 commit 4bcd09f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Makes/MakeView.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function __construct(ScaffoldMakeCommand $scaffoldCommand, Filesystem $fi
2828
$this->files = $files;
2929
$this->scaffoldCommandObj = $scaffoldCommand;
3030
$this->viewName = $viewName;
31+
$this->getSchemaArray();
3132

3233
$this->start();
3334
}
@@ -42,7 +43,7 @@ protected function getSchemaArray()
4243
{
4344
if($this->scaffoldCommandObj->option('schema') != null){
4445
if ($schema = $this->scaffoldCommandObj->option('schema')) {
45-
$schemaArray = (new SchemaParser)->parse($schema);
46+
$this->schemaArray = (new SchemaParser)->parse($schema);
4647
}
4748
}
4849
}

0 commit comments

Comments
 (0)