Giter Site home page Giter Site logo

bread's Introduction

Voyager Bread Builder

Voyager hook which allows you to build extensive BREAD Views and Lists.

Installation

1. Clone the hook

From your root directory clone the hook into the hooks dir

git clone https://github.com/emptynick/bread.git hooks/bread

2. Install the hook

After you cloned the hook, you can install it.

php artisan hook:install bread

3. Enable the hook

You can do this through Voyagers Hook-UI or by running the following command

php artisan hook:enable bread

4. Optional: Add Dummy Data

To get you started, you can run

php artisan bread:dummydata

This will create some views, lists and models for Categories, Pages and Posts

Concepts

This Hook works different from how you are used to in Voyager.
In Voyager you assign a Formfield to a Field, so you have a fixed amount of elements.
But in Lists or Views you can have as many Formfields as you want and assign a Field to it.
Remember that it doesn't care if it makes sense (e.g. you have the same Field assigned to three Formfields)

A BREAD-Type can have many Lists and Views.
With this you can create different Views for different roles, e.g. an Admin can have a different View than a Writer

View

A View is a set of Formfields. They are used for Reading, Editing, Viewing and Adding BREAD-Content.
Views can contain the Relationships from its model.

List

A List is used for Browsing BREAD-Content and displaying Relationships in a View.
It can contain its own fields, relationship fields and pivot fields.

Both Views and Lists can have a free-name (and get assigned to different Roles)

Read more about

Todo:

  • Assign views to Roles or create a Permission for each view
  • Validate relationship
  • Implement various FormFields
  • Add disabled option to Formfields
  • Reimplement Permissions
  • Dont display a relationship as a DataTable if there is only one visible_row
  • Properly display a relationship in Read
  • Add Validation-Repeater to List-Builder
  • Change the way we get Model-Fields.
    Currently we read the Database, because there is no way getting the attributes through the model if theres no entry.

Bugs:

  • Adding a new entry through a relationship does not save the relationship

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.