litecms/contact

Contact package for litecms.

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Maintainers

👁 Renfos

Package info

github.com/Litecms/Contact

Type:lavalite-package

pkg:composer/litecms/contact

Statistics

Installs: 54 293

Dependents: 1

Suggesters: 0

Stars: 16

Open Issues: 2

v10.1.1 2023-08-04 07:59 UTC

Requires

  • php: ^8.1

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 60bce6f0e5b802eaf539c53bade0c2c25037ea64

  • Lavalite <info.woop@lavalite.org>

contactlavalite


README

Lavalite package that provides contact management facility for the cms.

Installation

Run the below command form the root folder of lavalite.

 composer require "litecms/contact"

Migration and seeds

 php artisan migrate
 php artisan db:seed --class=Litecms\\Contact\\Seeders\\ContactTableSeeder

Publishing

  • Configuration
 php artisan vendor:publish --provider="Litecms\Contact\Providers\ContactServiceProvider" --tag="config"
  • Language
 php artisan vendor:publish --provider="Litecms\Contact\Providers\ContactServiceProvider" --tag="lang"
  • Views
 php artisan vendor:publish --provider="Litecms\Contact\Providers\ContactServiceProvider" --tag="view"

URLs and APIs

Web Urls

  • Admin
 http://path-to-route-folder/admin/contact/{modulename}
  • User
 http://path-to-route-folder/user/contact/{modulename}
  • Public
 http://path-to-route-folder/contacts

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/contact/{modulename}
 METHOD: GET
  • Create
 http://path-to-route-folder/api/user/contact/{modulename}
 METHOD: POST
  • Edit
 http://path-to-route-folder/api/user/contact/{modulename}/{id}
 METHOD: PUT
  • Delete
 http://path-to-route-folder/api/user/contact/{modulename}/{id}
 METHOD: DELETE

Public

  • List
 http://path-to-route-folder/api/contact/{modulename}
 METHOD: GET
  • Single Item
 http://path-to-route-folder/api/contact/{modulename}/{slug}
 METHOD: GET

Others

  • Report
 http://path-to-route-folder/api/user/contact/{modulename}/report/{report}
 METHOD: GET
  • Export/Import
 http://path-to-route-folder/api/user/contact/{modulename}/exim/{exim}
 METHOD: POST
  • Action
 http://path-to-route-folder/api/user/contact/{modulename}/action/{id}/{action}
 METHOD: PATCH
  • Actions
 http://path-to-route-folder/api/user/contact/{modulename}/actions/{action}
 METHOD: PATCH
  • Workflow
 http://path-to-route-folder/api/user/contact/{modulename}/workflow/{id}/{transition}
 METHOD: PATCH