Lavalite package that provides my_datum management facility for the cms. ## Installation Run the below command form the root folder of lavalite. ``` composer require "service/my_datum" ``` ## Migration and seeds ``` php artisan migrate php artisan db:seed --class=Service\\MyDatum\\Seeders\\MyDatumTableSeeder ``` ## Publishing * Configuration ``` php artisan vendor:publish --provider="Service\MyDatum\Providers\MyDatumServiceProvider" --tag="config" ``` * Language ``` php artisan vendor:publish --provider="Service\MyDatum\Providers\MyDatumServiceProvider" --tag="lang" ``` * Views ``` php artisan vendor:publish --provider="Service\MyDatum\Providers\MyDatumServiceProvider" --tag="view" ``` ## URLs and APIs ### Web Urls * Admin ``` http://path-to-route-folder/admin/my_datum/{modulename} ``` * User ``` http://path-to-route-folder/user/my_datum/{modulename} ``` * Public ``` http://path-to-route-folder/my_datas ``` ### 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/my_datum/{modulename} METHOD: GET ``` * Create ``` http://path-to-route-folder/api/user/my_datum/{modulename} METHOD: POST ``` * Edit ``` http://path-to-route-folder/api/user/my_datum/{modulename}/{id} METHOD: PUT ``` * Delete ``` http://path-to-route-folder/api/user/my_datum/{modulename}/{id} METHOD: DELETE ``` #### Public * List ``` http://path-to-route-folder/api/my_datum/{modulename} METHOD: GET ``` * Single Item ``` http://path-to-route-folder/api/my_datum/{modulename}/{slug} METHOD: GET ``` #### Others * Report ``` http://path-to-route-folder/api/user/my_datum/{modulename}/report/{report} METHOD: GET ``` * Export/Import ``` http://path-to-route-folder/api/user/my_datum/{modulename}/exim/{exim} METHOD: POST ``` * Action ``` http://path-to-route-folder/api/user/my_datum/{modulename}/action/{id}/{action} METHOD: PATCH ``` * Actions ``` http://path-to-route-folder/api/user/my_datum/{modulename}/actions/{action} METHOD: PATCH ``` * Workflow ``` http://path-to-route-folder/api/user/my_datum/{modulename}/workflow/{id}/{transition} METHOD: PATCH ```