nickdekruijk / admin Goto Github PK
View Code? Open in Web Editor NEWA simple, lightweight yet complete Laravel 5.5+ admin panel/backend and media/filemanager.
License: MIT License
A simple, lightweight yet complete Laravel 5.5+ admin panel/backend and media/filemanager.
License: MIT License
Is there a way to configure relationship between models in the admin config? Is so, how? For example: category has many product.
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.