custom-d / simple-content
A simple content
1.2.2
2020-06-09 22:04 UTC
Requires
- php: >=7.2
- illuminate/support: ^6.0|^7.0
- phpsa/laravel-api-controller: ^1
Requires (Dev)
- orchestra/testbench: ^4.0|^5.0
- phpunit/phpunit: ^8.4|^9.0
This package is auto-updated.
Last update: 2024-11-10 07:41:14 UTC
README
Simple Content Editable engine for Laravel modeled on the Zon version, Simply an api endpoint for get, post and delete
Installation
Install via composer
composer require custom-d/simple-content
Publish package assets (optional)
php artisan vendor:publish --provider="CustomD\SimpleContent\ServiceProvider"
Run migrations
php artisan migrate
Configuration
SIMPLE_CONTENT_STORAGE_DISK
defaults to s3, you can set it to any of the filesystem disks on your project, this holds the uploaded files.SIMPLE_CONTENT_EDITOR_ROLES
defaults toDeveloper,Editor
, use a comma seperated list of roles
Usage
- get List:
/api/cd/simplecontent
- with optional filters :filter[key]=page_key
||filter[key]=page_key||second_page_key
etc. - get One:
api/cd/simplecontent/{{slug}}
GET request - delete:
api/cd/simplecontent/{{slug}}
DELETE REQUEST - Insert
/api/cd/simplecontent
Post Request - Upload base64 file:
api/cd/upload
Post Request
Security
If you discover any security related issues, please email instead of using the issue tracker.