Administration panel auto generation solution created by MaestroError, Based on Laravel Orchid Platform
First of all ensure that you have installed orchid-platform, follow installation guide
- run
php artisan vendor:publish --tag=morchid-config
- run
php artisan morchid:listmodel {modelname}
- edit new model in app/morchid/{modelname}.php
- use Orchid's Form elements working with $objectFields
- add new created listmodel in main menu manually, app/orchid/PlatformProvider.php registerMainMenu method's return array:
Menu::make('Posts')
->icon('monitor')
->route('morchid::list', ["model"=>"Posts"]),
if you are not familiar with orchid platform, you can choose icons from here easily
Note: your new list model needs table in DB with exact fields, which you added as keys in $objectFields property
- get fieldsNamespace from config file +
- Make stub and new command for mOrchid models generation +
- Need to find way, for adding permissions and main menu items in platform provider -> just adding manually
- test admin generation with mOrchid +
- refactor baseTrait
- Review all command and comment them
- Review main class and add comments
- Review routes, resources and other needed codes, find out why you wrote this and comment them
- php artisan morchid:listmodel {modelname} Command creates file with lowercase
- Main codebase transferred
- Main command created
- Main 3 stabs created
- Routes are created
- Autogeneration of listModel started, it works!