GithubHelp home page GithubHelp logo

nickdekruijk / admin Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 2.0 336 KB

A simple, lightweight yet complete Laravel 5.5+ admin panel/backend and media/filemanager.

License: MIT License

PHP 49.05% CSS 14.78% JavaScript 21.16% Blade 15.01%

admin's People

Contributors

cetorres avatar nickdekruijk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

admin's Issues

Relationship between models

Is there a way to configure relationship between models in the admin config? Is so, how? For example: category has many product.

Set order of associated pivot data

Hi Nick,
Is there a way to set the order of the associated pivot data when selecting the items like this? I'd like to save the order the user clicked on the item as the order to show the items when I want in the frontend. In this case, I'm associating many categories to a business like so.

Screen Shot 2019-06-04 at 5 53 54 PM

I'd like to know if I can save the order that the user clicked on the categories to be the order I will show in the frontend. Or if there's another way to drag'n'drop to reorder the categories there to reflect the order they will be associated to the business when I show in the business profile.

Currently, I'm showing as alphabetical order on admin and frontend. But I'd like to have the order of the associated categories set differently for each business.

This is how I have configured on the admin.php, inside my Businesses module:

'categories' => [
   'validate' => 'required',
   'type' => 'pivot',
   'model' => 'App\Category',
   'columns' => 'name_en',
   'scope' => 'filter',
], 

Thank you.

Pivot relationships

Hi Nick,
Can you show me how to do pivot relationships? I saw that there's type pivot. But what the attributes necessary to configure correctly this field? I have a many-to-many relationship between business and amenities. I'd like to show the current amenities for a business and let the user change them and save.
Thank you.

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.