Pages ยท TomatoPHP
๐งฒ Generate CRUD
to generate a new CRUD from any table on your tomato-php generated CRUDs just need to run this command
php artisan tomato-flutter:crud
now you will get a new module inside your app dir /flutter/APP_NAME/lib/app/modules/TABLE_NAME to allow your module inside /flutter/APP_NAME/lib/app/modules/Modules.dart add this line
dart
and after that allow the modules to route inside the file /flutter/APP_NAME/lib/routes/Router.dart add this line
dart
Add Endpoints to Backend
please note that the generated files will match only APIs generated by TomatoPHP and you need to add APIs routes to the api.php
php