Lavalite package that provides 1000 management facility for the cms. ## Installation Run the below command form the root folder of lavalite. ``` composer require "rakshitha/1000" ``` ## Migration and seeds ``` php artisan migrate php artisan db:seed --class=Rakshitha\\1000\\Seeders\\1000TableSeeder ``` ## Publishing * Configuration ``` php artisan vendor:publish --provider="Rakshitha\1000\Providers\1000ServiceProvider" --tag="config" ``` * Language ``` php artisan vendor:publish --provider="Rakshitha\1000\Providers\1000ServiceProvider" --tag="lang" ``` * Views ``` php artisan vendor:publish --provider="Rakshitha\1000\Providers\1000ServiceProvider" --tag="view" ``` ## URLs and APIs ### Web Urls * Admin ``` http://path-to-route-folder/admin/1000/{modulename} ``` * User ``` http://path-to-route-folder/user/1000/{modulename} ``` * Public ``` http://path-to-route-folder/1000s ``` ### API endpoints These endpoints can be used with or without `/api/` And also the user can be varied depend on the type of users, eg user, client, admin etc. #### Resource * List ``` http://path-to-route-folder/api/user/1000/{modulename} METHOD: GET ``` * Create ``` http://path-to-route-folder/api/user/1000/{modulename} METHOD: POST ``` * Edit ``` http://path-to-route-folder/api/user/1000/{modulename}/{id} METHOD: PUT ``` * Delete ``` http://path-to-route-folder/api/user/1000/{modulename}/{id} METHOD: DELETE ``` #### Public * List ``` http://path-to-route-folder/api/1000/{modulename} METHOD: GET ``` * Single Item ``` http://path-to-route-folder/api/1000/{modulename}/{slug} METHOD: GET ``` #### Others * Report ``` http://path-to-route-folder/api/user/1000/{modulename}/report/{report} METHOD: GET ``` * Export/Import ``` http://path-to-route-folder/api/user/1000/{modulename}/exim/{exim} METHOD: POST ``` * Action ``` http://path-to-route-folder/api/user/1000/{modulename}/action/{id}/{action} METHOD: PATCH ``` * Actions ``` http://path-to-route-folder/api/user/1000/{modulename}/actions/{action} METHOD: PATCH ``` * Workflow ``` http://path-to-route-folder/api/user/1000/{modulename}/workflow/{id}/{transition} METHOD: PATCH ```