InfyOmLabs / laravel-generator

API and Admin Panel CRUD Generator for Laravel.
https://www.infyom.com/open-source
MIT License
3.78k stars 802 forks source link

Is Vuejs working ? #549

Closed JafarAkhondali closed 5 years ago

JafarAkhondali commented 6 years ago

Hi, I got confused about VueJs support, There are some commands in cli but there is not documentation in your website and i'm not sure about it's usage and maximum laravel version.

JafarAkhondali commented 6 years ago

Laravel version: 5.6 Php: 7.2.3

When i used infyom:vuejs --fromTable users command, i got the following error


  at /srv/http/AnzimServer/vendor/infyomlabs/laravel-generator/src/Generators/VueJs/ControllerGenerator.php:39
    35|         $i = 0;
    36|         $filter = '';
    37|         $searchableCount = 0;
    38|         foreach ($fields as $field) {
  > 39|             if ($field['searchable']) {
    40|                 $searchableCount++;
    41|             }
    42|         }
    43|         foreach ($fields as $field) {
dhsont commented 6 years ago

Have you got any success ?

Hello Mitul

Vue js is not Working

Getting errors.

Looks no new Updates on vue js .

 Symfony\Component\Debug\Exception\FatalThrowableError  : Cannot use object of type InfyOm\Generator\Common\GeneratorField as array

  at D:\e\laragon\www\l56newClass\vendor\infyomlabs\laravel-generator\src\Generators\VueJs\ControllerGenerator.php:39
    35|         $i = 0;
    36|         $filter = '';
    37|         $searchableCount = 0;
    38|         foreach ($fields as $field) {
  > 39|             if ($field['searchable']) {
    40|                 $searchableCount++;
    41|             }
    42|         }
    43|         foreach ($fields as $field) {

@mitulgolakiya @NightZpy

yswtrue commented 5 years ago

Same problem.

mitulgolakiya commented 5 years ago

@JafarAkhondali @yswtrue @dhsont #375 merged. Can you test it and check if it's working or not. Re-open it if the problem persists.

mitulgolakiya commented 5 years ago

Dupliate: #531