custom-d/simple-content

A simple content

1.2.2 2020-06-09 22:04 UTC

This package is auto-updated.

Last update: 2024-04-10 06:27:20 UTC


README

Simple Content Editable engine for Laravel modeled on the Zon version, Simply an api endpoint for get, post and delete

Installation

  1. Install via composer

     composer require custom-d/simple-content
    
  2. Publish package assets (optional)

     php artisan vendor:publish --provider="CustomD\SimpleContent\ServiceProvider"
    
  3. 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 to Developer,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.

Credits