Giter Site home page Giter Site logo

frontdesk's People

Contributors

m-triassi avatar

Watchers

 avatar  avatar  avatar

frontdesk's Issues

Menuable should have a custom Pivot

Description

It could be useful to define a pivot model for the menuable table to allow easy traversal between linkables and menus

Potential Enhancement:

What if we renamed this to navs (or something else) and made it a custom morph pivot like Nav, so you can at least go backward from a menu to the things that reference it.

Ie: $menu->navs->first()->menuable

Otherwise you get forced into knowing in advance the Content types it links to in order to do something like $menu->pages.

If Menu instances dont need to be linked to multiple pieces of Menuable content/objects, then we could always just put the menuable morphs on the menus table.

Originally posted by @kfriars in #2 (comment)

Navigation model must be implemented

Description

A Model must be implemented that allows for navigations items to be created. These navigation items will allow a user to either create arbitraty links to external resources / websites, or to link to some internal resource, like a specific model or route.

This means the model must support:

  • Polymorphic relations to any "Navigatable" model (ie: a set of morph columns + a trait to easily enable a model as navigateable)
  • A Route to pass the related model to when viewing it (as well as a way to supply any other required parameters)
  • Arbitrary URLs as destinations. In this case the morph relation is null

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.