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