InfyOmLabs / laravel-generator

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

artisan infyom.publish:user : View [users.create] not found. #1060

Open CrunchyArtie opened 1 year ago

CrunchyArtie commented 1 year ago

With a fresh laravel 9 project I try to execute this command : artisan infyom.publish:user

This is the response:

 InvalidArgumentException 

  View [users.create] not found.

  at vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137
    133▕                 }
    134▕             }
    135▕         }
    136▕
  ➜ 137▕         throw new InvalidArgumentException("View [{$name}] not found.");
    138▕     }
    139▕
    140▕     /**
    141▕      * Get an array of possible view files.

  i   users.create was not found: Are you sure the view exists and is a `.blade.php` file?

      +19 vendor frames 
  20  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

I don't know what I have to do. The command create the folder resources/views/users but it's empty. I don't know where is the wanted users.create file. There is a create.blade.php file inside resources/views/vendor/adminlte-templates/templates/users.

(By the way, I'm using lando, but i don't think this could be the problem)

talenta-eg commented 1 year ago

Same Issue ? Any Solution

talenta-eg commented 1 year ago

i have a similar issue https://github.com/InfyOmLabs/laravel-generator/issues/1064#issue-1570814546

surodinsergey commented 1 year ago

I have too

KanithiSubramanyam commented 1 year ago

I have a solution for that try using php artisan infyom:scaffold User --fromTable --table=users this command if this is'nt worked try php artisan infyom:scaffold User --fromTable --tableName=users