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