Open ebrahim5200 opened 4 years ago
found a solution?
Found same issue today, It was okay to generate a controller then, but today I found same error here. What happen?
I found out that _get($key)
method in GeneratorField.php
throw error because it didn't set anything. $key
variables is isOrderable
but $this
itself didn't contain isOrderable
key. I just set return $this->$key
to $this
, and it works.
ErrorException : Undefined property: InfyOm\Generator\Common\GeneratorField: :$isOrderable
smartervisi on\laravel-generator\src\Common\GeneratorField.php:151 147| if ($key == 'fieldTitle') { 148| return Str::title(strreplace('', ' ', $this->name)); 149| } 150|
Exception trace:
1 Illuminate\Foundation\Bootstrap\HandleExceptions::handleError("Undefined p roperty: InfyOm\Generator\Common\GeneratorField::$isOrderable"