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

php artisan infyom:scaffold for custom table error and question about searchable #106

Closed fredy-bambang closed 8 years ago

fredy-bambang commented 8 years ago

Hello, thank you for this cool stuff, i interested to try it out.

i just try this command below php artisan infyom:scaffold TrialTable --tableName=AX123 --paginate=5

and get error when do the migration [Symfony\Component\Debug\Exception\FatalErrorException] Class 'CreateAX123Table' not found

when i check the migration it created file with name 2016_04_08_202724_create_AX123_table.php and i open the content its return with classname class CreateTrialTablesTable extends Migration

actually i can fix it manually but i just want to tell this problem. after i try this generator yesterday.

And the second thing is about when i execute php artisan infyom:scaffold got feature like

Is Searchable (y/N): []: when i type any of the option i got nothing after get the scaffold result and execute the script with my browser.and i didn't find it at documentation. I actually expect it have filter and sorting feature in this scaffold

maybe i miss it or something. if like that can you point to me what i'm miss.

Sorry for my bad english.

mitulgolakiya commented 8 years ago

@fredy-bambang I have fixed table name stuff, will push it in next release.

You can find documentation for search here

tpharaoh commented 8 years ago

Does that mean for search we need to add another package via composer? Do we need to edit views manually?

mitulgolakiya commented 8 years ago

No. Search is currently supported in apis only with this given package. This package is already installed when you install a generator. The search option is currently available when you generate scaffold with datatables. You can find doc here