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