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
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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-contentPublish package assets (optional)
php artisan vendor:publish --provider="CustomD\SimpleContent\ServiceProvider"Run migrations
php artisan migrate
Configuration
SIMPLE_CONTENT_STORAGE_DISKdefaults to s3, you can set it to any of the filesystem disks on your project, this holds the uploaded files.SIMPLE_CONTENT_EDITOR_ROLESdefaults 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_keyetc. - get One:
api/cd/simplecontent/{{slug}}GET request - delete:
api/cd/simplecontent/{{slug}}DELETE REQUEST - Insert
/api/cd/simplecontentPost Request - Upload base64 file:
api/cd/uploadPost Request
Security
If you discover any security related issues, please email instead of using the issue tracker.