# Installation The instructions below will help you to properly installand run the generated package to the lavalite project. ## Location Extract the package contents to the folder `/packages/bilcom/u3u9/` ## Composer Add the below entries in the `composer.json`. ```json ... "repositories": { ... { "type": "path", "url": "packages/bilcom/u3u9" } ... }, ... ``` Then run `composer require bilcom/u3u9` ## Migration and seeds ``` php artisan migrate php artisan db:seed --class=Bilcom\\U3u9\\Seeders\\U3u9TableSeeder ``` ## Publishing * Configuration ``` php artisan vendor:publish --provider="Bilcom\U3u9\Providers\U3u9ServiceProvider" --tag="config" ``` * Language ``` php artisan vendor:publish --provider="Bilcom\U3u9\Providers\U3u9ServiceProvider" --tag="lang" ``` * Views ``` php artisan vendor:publish --provider="Bilcom\U3u9\Providers\U3u9ServiceProvider" --tag="view" ``` ## URLs and APIs ### Web Urls * Admin ``` http://path-to-route-folder/admin/u3u9/{modulename} ``` * User ``` http://path-to-route-folder/user/u3u9/{modulename} ``` * Public ``` http://path-to-route-folder/u3u9s ``` ### 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/u3u9/{modulename} METHOD: GET ``` * Create ``` http://path-to-route-folder/api/user/u3u9/{modulename} METHOD: POST ``` * Edit ``` http://path-to-route-folder/api/user/u3u9/{modulename}/{id} METHOD: PUT ``` * Delete ``` http://path-to-route-folder/api/user/u3u9/{modulename}/{id} METHOD: DELETE ``` #### Public * List ``` http://path-to-route-folder/api/u3u9/{modulename} METHOD: GET ``` * Single Item ``` http://path-to-route-folder/api/u3u9/{modulename}/{slug} METHOD: GET ``` #### Others * Report ``` http://path-to-route-folder/api/user/u3u9/{modulename}/report/{report} METHOD: GET ``` * Export/Import ``` http://path-to-route-folder/api/user/u3u9/{modulename}/exim/{exim} METHOD: POST ``` * Action ``` http://path-to-route-folder/api/user/u3u9/{modulename}/action/{id}/{action} METHOD: PATCH ``` * Actions ``` http://path-to-route-folder/api/user/u3u9/{modulename}/actions/{action} METHOD: PATCH ``` * Workflow ``` http://path-to-route-folder/api/user/u3u9/{modulename}/workflow/{id}/{transition} METHOD: PATCH ```