Comments (5)
Hi @ignasbernotas - I've just tested it all again, it all works well for me. I think that Laravel version that you're using is a little older - Authorization features with permissions were added in 5.1.11:
http://laravel.com/docs/5.1/authorization
"Note: Authorization was added in Laravel 5.1.11, please refer to the upgrade guide before integrating these features into your application."
I guess we should add this requirement to our documentation.
from quickadmin.
As far as I see the error has to do with the function defined in src/Traits/AdminPermissionsTrait.php
and not with a Laravel authorization function (which is can()
, not permissionCan()
).
It seems the function/trait is not present on the model according to the error.
from quickadmin.
I've located this bug. This is due that our middleware tries to check user data while user is not logged in. I have this bug fixed but there will be a short time till it is released (we are working on a bigger update now).
Thank you for this report and have a nice day!
from quickadmin.
One suggestion. This package shouldn't be so intrusive. By that I mean, it shouldn't overwrite the models, but rather have instructions on what traits, keys or relationships should be added to the model, or even better, there should be separate models extending the existing ones.
Thoughts? :)
from quickadmin.
Thanks for suggestion @ignasbernotas - it makes sense in general, but that's not what we're trying to build here. QuickAdmin is a GENERATOR package which people should use after fresh Laravel install. And then you can build on top of that - if you need more logic or something to be different - your models etc.
The goal here is that final result would be pure Laravel MVC code, not Quickadmin code - therefore people don't need to learn our structure or read our documentation, they generate what they need and then move on with their logic.
from quickadmin.
Related Issues (20)
- can't find integer data type on Quick Admin HOT 5
- Multiple Photo Fields in a single CRUD HOT 5
- How to use quickadmin with users table renamed HOT 6
- It's best to make a common page (fields.blade) for editing and creating a fields. HOT 1
- Delete image file when removes record HOT 1
- CRUD controller's index action should use paginate instead of all HOT 1
- Your requirements could not be resolved to an installable set of packages. HOT 2
- Not Able to install barryvdh/laravel-dompdf HOT 1
- Package phpoffice/phpexcel is abandoned... HOT 3
- Sum in the footer HOT 2
- Lang files using CRLF instead of LF
- How to set all admin routes under /admin? HOT 10
- can´t acces after installing
- Support for Laravel 5.7 HOT 3
- Can I download archive with my panel code? HOT 2
- Access in localhost
- passport
- Unable to install with 8.x HOT 1
- API Collection HOT 1
- After upgrade Laravel 9 Route not found, please confirm if QuickAdmin 2.0.0 can work with Laravel 9 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickadmin.