laravel-backpack / permissionmanager Goto Github PK
View Code? Open in Web Editor NEWAdmin interface for managing users, roles, permissions, using Backpack CRUD
Home Page: http://backpackforlaravel.com
License: Other
Admin interface for managing users, roles, permissions, using Backpack CRUD
Home Page: http://backpackforlaravel.com
License: Other
I have a large users table and would like to use the Ajax features.
I cannot see a config option for it, forcing $this->crud->enableAjaxTable(); in UserCrudController.php results in a javascript error.
5.4 gives the following error.
also publis does not move the migrate file..had to move by hand.
$ php artisan migrate
[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name '' (SQL: create table `` (id
int unsigned not null auto_increment primary key, `name` varchar(255) not null, `created_at` timestamp n
ull, `updated_at` timestamp null) default character set utf8mb4 collate utf8mb4_unicode_ci engine = InnoDB
ROW_FORMAT=DYNAMIC)
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name ''
[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name ''
Hi!
I install the package, and when I launch
$ php artisan vendor:publish --provider="Backpack\PermissionManager\PermissionManagerServiceProvider"
The output is :
Nothing to publish for tag [].
Is there any bug?
Documentation links directly to /admin/[action]
but the /admin
part is actually configurable and so it breaks when someone has changed it.
The fix that will be suggested in a few hours from now uses the configuration.
hi, any chance on making this a stand alone version a part from backpack?
Hello.
I'm trying to add the concept of levels to Roles. So when the user has access to user creation/updating, he/she won't be able to create/update higher levels.
For example, if the role "admin" had level 1, and the role "editor" had level 2: user with "editor" role should not be able to create/update/list users with "admin" roles (or levels < 2, or even other "editors").
I started implementing this by adding the "level" field to the database and RoleCrudController
.
Then I added global scope to Role
to query roles only which have levels "lower" (in terms of access) than the current user.
But apparently, adding global scope to Role
has side effects. Currently, my main problem is:
when it checks whether the user has any permission, it goes to hasPermissionViaRoles
function, which queries permission->roles
. My global scope is being applied and hasPermissionTo
returns false.
Also, I couldn't figure out how to validate a request on onStore/onUpdate
(whether the user has enough role level to assign/to update the given role).
I appreciate any help you can provide!
Im trying the field examples on
https://laravel-backpack.readme.io/docs/crud-fields
to create something like this:
Hi
Is there any possibilities to add more fields to the form when creating and updating a user?
Without modifying the vendor files?
Hi,
I've been just using Roles as the whole roles-permission manager. Because sometimes a website is not that complex. The whole thing is working perfectly. So, I think that this partial use of this package is acceptable.
But now, there's seem to be a little problem, I tried to check the code (checklist_dependency, ...) , but it is above my level.
I can't remove (or simply just hide that last Permission label). on the edit/create User view.
Hi,
The stock spatie functionality does not work, since their service provider does not get called. Please add the below lines in bold to Backpack\PermissionManager\PermissionManagerServiceProvider
use Spatie\Permission\PermissionServiceProvider;
class PermissionManagerServiceProvider extends ServiceProvider{
public function register()
{
//$this->registerPermissions();
$this->app->register(PermissionServiceProvider::class);
$this->setupRoutes($this->app->router);
//use this if your package has a config file
// config([
// 'config/laravel-permission.php',
// ]);
}
}
Hi,
I added the 'roles_and_permisions' field in the $this->crud->setColumns array, in the UserCrudController, but i can't figure out what i am missing because i don't see what it has been set for the users in that column.
Hi guys,
I was thinking, is it not wise to have radios as opposed to checkboxes when assigning roles to a user? Is there a way to do this without affecting ability to update?
Had some issues upgrading so decided to do a fresh local 5.4 install, and slowly integrate all my changes.
I followed your guide as on:
From the Optionals, I installed:
LangFileManager
BackupManager
Settings
PermissionManager
Loaded up the app in the browser and so far so good, until I decide to try admin/user, I got datatables error:
errors from user/search xhr call:
1/3
BadMethodCallException in Builder.php line 2508:
Call to undefined method Illuminate\Database\Query\Builder::translationEnabled()
2/3
ErrorException in Builder.php line 2508:
Call to undefined method Illuminate\Database\Query\Builder::translationEnabled() (View: C:\xampp\htdocs\admin\resources\views\vendor\backpack\crud\buttons\update.blade.php)
3/3
ErrorException in Builder.php line 2508:
Call to undefined method Illuminate\Database\Query\Builder::translationEnabled() (View: C:\xampp\htdocs\admin\resources\views\vendor\backpack\crud\buttons\update.blade.php) (View: C:\xampp\htdocs\admin\resources\views\vendor\backpack\crud\buttons\update.blade.php)
Thank you
I just can't find if there is any "Admin" role that can access everything by default, or if the solution is to check it everytime.
My plan is to check if user has permission, or is admin. But is something already made for admin?
I can use @role('admin')
in templates, but when a access current user by Auth::User()
method, it returns Null, how can I access it, and use $user->hasRole('writer')
in a CrudController ?
I installed Permission Manager and when you access the Administrator -> users, I get the following error:
BadMethodCallException in Builder.php line 2431: Call to undefined method Illuminate\Database\Query\Builder::addFakes()
The roles and permissions pages work well , the only one that does not work, it is the users.
I hope you can help me.
Regards!!
I posted something similar in Base yesterday, now im looking for the same thing with permissions,
I want to be able to customise the crudcontrollers so that I can alter the views, however currently all logic lies in /vendor so is not version control safe.
I was thinking to store them in App\Http\Controllers\Permissions, however Im not sure how to re-route?
Cheers
I'm trying to make an entirely translatable site.
So when I create a new role/permission, I have to assign a name, wich is also used to check permissions.
With a french language I get something like this : $user->hasRole('Dรฉveloppeur')
or $user->hasPermissionTo('accรจs backoffice')
Is there anyway to give to the role/permission a kind of "id name", which will be used in the code but displayed to the user with its translation ?
$user->hasRole('developer')
or $user->hasPermissionTo('backoffice_access')
en : Your role is "Developer" and you have the following permissions : "Access to the backoffice"
fr : Vous avez le rรดle de "Dรฉveloppeur" et vous avez les permissions suivantes : "Accรจs au backoffice"
And in the backoffice the user will also see the translated roles/permissions name
I've just started to look at backpack, and have never used any laravel authentication before, so I'm struggling a little here with users.
I've created a new crud controller which works fine, however I'm wanting to limit access to it to users who have the permission teams.update
I've been digging around the documentation and still cant figure it out, I'm not sure if i'm doing this completely wrong or what.
My 3 theories were
$this->crud->allowAccess('teams.update')
I was hoping this would only allow access to people who have teams.update
but that didnt work.
My second theory was - but this always returned false
if( !$this->crud->hasAccess('teams.update') ) {
$this->crud->denyAccess('teams.update');
}
My final theory was - but $user
was always null
, maybe because im in the controller construct?
$user = Auth::user();
if( !$user->hasPermissionTo('teams.update') ) {
$this->crud->denyAccess('teams.update');
}
Help. Please :(
How add new default role after register new user by front-end?
@ROLE('writer') works
@hasrole('writer') works
@can('special.permission') works
@hasanyrole(Role::all()) however kicks an error Class Role not found.
My config file references 'role' => Backpack\PermissionManager\app\Models\Role::class,
and the Role.php file containing the class is there at that address. I am guessing it is either not autoloading or something.
Any tips?
FQCN of User class must be configurable.
The list view for users seems to completely ignore soft deletes, as such showing deleted users as well. Is this intentional?
I found that be behaviour of the following command generates different config.
php artisan vendor:publish --provider="Backpack\PermissionManager\PermissionManagerServiceProvider"
php artisan vendor:publish
They both generated /config/laravel-permission.php. The first one generated
'user_has_permissions' => 'permission_users',
'user_has_roles' => 'role_users',
'role_has_permissions' => 'permission_roles',
while the second one generated
'user_has_permissions' => 'user_has_permissions',
'user_has_roles' => 'user_has_roles',
'role_has_permissions' => 'role_has_permissions',
When I was trying this code in my development I was following the instructions and used the first command. However, in production code I used the second which generate all assets and configs.
I am just wondering is there a reason the name permission_roles
is used instead of role_has_permissions
in this project? If no, would you might I create a pull request to make them consistent?
C:\xampp\htdocs\rol>php artisan vendor:publish --provider="Backpack\PermissionManager\PermissionManagerServiceProvider"
PHP Fatal error: Class 'CRUD' not found in C:\xampp\htdocs\rol\vendor\backpack\permissionmanager\src\PermissionManagerServiceProvider.php on line 57
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'CRUD' not found
Hi,
Using the PermissionManager, i'm getting the following error while trying to add a user
Undefined index: dependencies (View: /resources/views/vendor/backpack/crud/fields/checklist_dependency.blade.php)
Can someone help?
Hello guys, can you help me a little bit.
I am using backpack as an admin panel for this new project and everything is fine. But now I installed this PermissionManager, did everything in readme on my current installation which was L5.3, and tried on a fresh new one L5.4
First thing, when I go to the users route admin/users it popups me an error (DataTables warning: table id=crudTable - Ajax Error. For more information visit the link), and it doesn't list the users.
Another thing is that when I save the new role I want to create, the system try to save in table that is not there actually :(
What am I doing wrong
It there any way to prevent access other users to admin panel?
I made roles for user and admin, But there is no gui mode to assign role to user.
Is there a way one can Override the package controller (say UserCrudController.php) with the same file created in App/Http/Controllers/Admin? The reason being that I want to add some more columns to the table with extra data without breaking anything when updates are made.
I just noticed that default table names in the migration do not correspond to the index used to look for them in the config files. As an example, 'user_has_permissions'
creates a table called 'permission_users'
.
Is this by design? Is it something inherited from spatie/laravel-permission
? (couldn't find anything). Is it some kind of widely used convention I am not aware of?
I think the package should provide better defaults, so newcomers have an easier time understanding how this works, but advanced users still can fit to their needs. This can be acomplished either by changing the index name, or the table name.
What are your thoughts about this?
Let say we have "Admin" and "User" role in our application.
I manage to create a custom middle and grant access to a route for specific role only.
Route::group(['prefix' => 'admin', 'middleware' => 'admin','middleware' => 'hasRole:admin'], function() { CRUD::resource('data', 'Admin\DataCrudController'); }
This is my middleware
<?php namespace App\Http\Middleware; use Closure; use Auth; use Alert; class HasRole { public function handle($request, Closure $next, $role) { if (!Auth::user()->hasRole($role)) { Alert::add('error', 'You do not have necessary authorization to access to the page')->flash(); return redirect('home'); } return $next($request); } }
By doing this, only user with "admin" role shall allow to access to the route "data".
Yet, I also want to restrict route "/admin/user" and "/admin/role", which is generated by this package, for "admin" user only.
Anyone has experience with this?
Thanks,
Punleu
ErrorException in Builder.php line 2508:
Call to undefined method Illuminate\Database\Query\Builder::translationEnabled() (View: C:\xampp\htdocs\rol\vendor\backpack\crud\src\resources\views\form_content.blade.php) (View: C:\xampp\htdocs\rol\vendor\backpack\crud\src\resources\views\form_content.blade.php)
Why??? help
Why are there no settings for disabling delete on permission and role? This seems quite an obvious feature. Is this intentional?
'allow_permission_delete' => true,
if (!config('backpack.permissionmanager.allow_permission_delete')) {
$this->crud->denyAccess('delete');
}
Hello, how can I translate PermissionManager fields to Portuguese?
C:\xampp\htdocs\rol>php artisan vendor:publish --provider="Backpack\PermissionManager\PermissionManagerServiceProvider"
PHP Fatal error: Class 'CRUD' not found in C:\xampp\htdocs\rol\vendor\backpack\permissionmanager\src\PermissionManagerServiceProvider.php on line 57
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'CRUD' not found
I wanted to add a @hasallroles condition in the sidebar.blade.php file and i got the error that class Role is not found. Is there any file where i can load it so it would work site-wide?
Hi,
The service provider should read:
Backpack\PermissionManager\PermissionManagerServiceProvider::class,
Instead of:
Backpack\PermissionManager\PermissionsServiceProvider::class,
Hi Cristian Tabacitu,
I have a problem after installation plugin backpack laravel.
If I access menu admin/user, I have an error like this "Call to undefined method Illuminate\Database\Query\Builder::addFakes()".
I'm not found where is the problem.
I've seen at config in folder vendor/backpack/permissionmanager,
Can you solve this issued??
A command that makes overwriting default functionality easier.
An artisan command that creates blank controllers, requests and models. Those classes:
So that the developer would only need to write the logic for the method they want to overwrite.
How to get Users with particular role?
unable to find such method
i want to count them.
Hi, i got this following error when trying to install via composer on laravel 5.4 -> composer require backpack/permissionmanager :
Using version ^2.1 for backpack/permissionmanager
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install backpack/permissionmanager 2.1.11
- Conclusion: don't install backpack/permissionmanager 2.1.10
- Conclusion: don't install backpack/permissionmanager 2.1.9
- Conclusion: don't install backpack/permissionmanager 2.1.8
- Conclusion: don't install backpack/permissionmanager 2.1.7
- Conclusion: don't install backpack/permissionmanager 2.1.6
- Conclusion: don't install backpack/permissionmanager 2.1.5
- Conclusion: don't install backpack/permissionmanager 2.1.4
- Conclusion: don't install backpack/permissionmanager 2.1.3
- Conclusion: don't install backpack/permissionmanager 2.1.2
- Conclusion: don't install backpack/permissionmanager 2.1.1
- Conclusion: don't install classpreloader/classpreloader 1.0.2
- laravel/framework 5.2.41 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.0 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.1 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.10 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.11 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.12 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.13 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.14 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.15 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.16 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.17 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.18 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.19 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.2 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.20 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.21 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.22 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.23 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.24 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.25 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.26 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.27 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.28 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.29 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.3 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.30 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.31 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.32 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.33 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.34 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.35 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.36 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.37 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.38 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.39 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.4 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.40 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.42 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.43 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.44 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.45 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.5 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.6 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.7 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.8 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.2.9 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.0 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.1 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.10 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.11 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.12 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.13 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.14 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.15 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.16 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.17 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.18 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.19 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.2 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.20 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.21 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.22 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.23 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.24 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.25 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.26 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.27 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.28 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.29 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.3 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.30 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.4 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.5 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.6 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.7 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.8 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.3.9 requires classpreloader/classpreloader ~3.0 -> satisfiable by classpreloader/classpreloader[3.0.0, 3.1.0].
- laravel/framework v5.1.11 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.12 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.13 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.14 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.15 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.16 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.17 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.18 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.19 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.20 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.21 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.22 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.23 requires classpreloader/classpreloader ~2.0 -> satisfiable by classpreloader/classpreloader[2.0.0].
- laravel/framework v5.1.24 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.25 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.26 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.27 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.28 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.29 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.30 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.31 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.32 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.33 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.34 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.35 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.36 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.37 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.38 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.39 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.40 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.41 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.42 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.43 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.44 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- laravel/framework v5.1.45 requires classpreloader/classpreloader ~2.0|~3.0 -> satisfiable by classpreloader/classpreloader[2.0.0, 3.0.0, 3.1.0].
- Can only install one of: classpreloader/classpreloader[3.0.0, 1.0.2].
- Can only install one of: classpreloader/classpreloader[3.1.0, 1.0.2].
- Can only install one of: classpreloader/classpreloader[2.0.0, 1.0.2].
- Installation request for classpreloader/classpreloader (locked at 1.0.2) -> satisfiable by classpreloader/classpreloader[1.0.2].
- Installation request for backpack/permissionmanager ^2.1 -> satisfiable by backpack/permissionmanager[2.1.0, 2.1.1, 2.1.10, 2.1.11, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9].
- Conclusion: don't install laravel/framework v4.1.31|install laravel/framework 5.2.41|install laravel/framework v5.1.11|install laravel/framework v5.1.12|install laravel/framework v5.1.13|install laravel/framework v5.1.14|install laravel/framework v5.1.15|install laravel/framework v5.1.16|install laravel/framework v5.1.17|install laravel/framework v5.1.18|install laravel/framework v5.1.19|install laravel/framework v5.1.20|install laravel/framework v5.1.21|install laravel/framework v5.1.22|install laravel/framework v5.1.23|install laravel/framework v5.1.24|install laravel/framework v5.1.25|install laravel/framework v5.1.26|install laravel/framework v5.1.27|install laravel/framework v5.1.28|install laravel/framework v5.1.29|install laravel/framework v5.1.30|install laravel/framework v5.1.31|install laravel/framework v5.1.32|install laravel/framework v5.1.33|install laravel/framework v5.1.34|install laravel/framework v5.1.35|install laravel/framework v5.1.36|install laravel/framework v5.1.37|install laravel/framework v5.1.38|install laravel/framework v5.1.39|install laravel/framework v5.1.40|install laravel/framework v5.1.41|install laravel/framework v5.1.42|install laravel/framework v5.1.43|install laravel/framework v5.1.44|install laravel/framework v5.1.45|install laravel/framework v5.2.0|install laravel/framework v5.2.1|install laravel/framework v5.2.10|install laravel/framework v5.2.11|install laravel/framework v5.2.12|install laravel/framework v5.2.13|install laravel/framework v5.2.14|install laravel/framework v5.2.15|install laravel/framework v5.2.16|install laravel/framework v5.2.17|install laravel/framework v5.2.18|install laravel/framework v5.2.19|install laravel/framework v5.2.2|install laravel/framework v5.2.20|install laravel/framework v5.2.21|install laravel/framework v5.2.22|install laravel/framework v5.2.23|install laravel/framework v5.2.24|install laravel/framework v5.2.25|install laravel/framework v5.2.26|install laravel/framework v5.2.27|install laravel/framework v5.2.28|install laravel/framework v5.2.29|install laravel/framework v5.2.3|install laravel/framework v5.2.30|install laravel/framework v5.2.31|install laravel/framework v5.2.32|install laravel/framework v5.2.33|install laravel/framework v5.2.34|install laravel/framework v5.2.35|install laravel/framework v5.2.36|install laravel/framework v5.2.37|install laravel/framework v5.2.38|install laravel/framework v5.2.39|install laravel/framework v5.2.4|install laravel/framework v5.2.40|install laravel/framework v5.2.42|install laravel/framework v5.2.43|install laravel/framework v5.2.44|install laravel/framework v5.2.45|install laravel/framework v5.2.5|install laravel/framework v5.2.6|install laravel/framework v5.2.7|install laravel/framework v5.2.8|install laravel/framework v5.2.9|install laravel/framework v5.3.0|install laravel/framework v5.3.1|install laravel/framework v5.3.10|install laravel/framework v5.3.11|install laravel/framework v5.3.12|install laravel/framework v5.3.13|install laravel/framework v5.3.14|install laravel/framework v5.3.15|install laravel/framework v5.3.16|install laravel/framework v5.3.17|install laravel/framework v5.3.18|install laravel/framework v5.3.19|install laravel/framework v5.3.2|install laravel/framework v5.3.20|install laravel/framework v5.3.21|install laravel/framework v5.3.22|install laravel/framework v5.3.23|install laravel/framework v5.3.24|install laravel/framework v5.3.25|install laravel/framework v5.3.26|install laravel/framework v5.3.27|install laravel/framework v5.3.28|install laravel/framework v5.3.29|install laravel/framework v5.3.3|install laravel/framework v5.3.30|install laravel/framework v5.3.4|install laravel/framework v5.3.5|install laravel/framework v5.3.6|install laravel/framework v5.3.7|install laravel/framework v5.3.8|install laravel/framework v5.3.9
- backpack/permissionmanager 2.1.0 requires illuminate/support ~5.1 -> satisfiable by illuminate/support[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9], laravel/framework[5.2.41, v5.1.11, v5.1.12, v5.1.13, v5.1.14, v5.1.15, v5.1.16, v5.1.17, v5.1.18, v5.1.19, v5.1.20, v5.1.21, v5.1.22, v5.1.23, v5.1.24, v5.1.25, v5.1.26, v5.1.27, v5.1.28, v5.1.29, v5.1.30, v5.1.31, v5.1.32, v5.1.33, v5.1.34, v5.1.35, v5.1.36, v5.1.37, v5.1.38, v5.1.39, v5.1.40, v5.1.41, v5.1.42, v5.1.43, v5.1.44, v5.1.45, v5.2.0, v5.2.1, v5.2.10, v5.2.11, v5.2.12, v5.2.13, v5.2.14, v5.2.15, v5.2.16, v5.2.17, v5.2.18, v5.2.19, v5.2.2, v5.2.20, v5.2.21, v5.2.22, v5.2.23, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.29, v5.2.3, v5.2.30, v5.2.31, v5.2.32, v5.2.33, v5.2.34, v5.2.35, v5.2.36, v5.2.37, v5.2.38, v5.2.39, v5.2.4, v5.2.40, v5.2.42, v5.2.43, v5.2.44, v5.2.45, v5.2.5, v5.2.6, v5.2.7, v5.2.8, v5.2.9, v5.3.0, v5.3.1, v5.3.10, v5.3.11, v5.3.12, v5.3.13, v5.3.14, v5.3.15, v5.3.16, v5.3.17, v5.3.18, v5.3.19, v5.3.2, v5.3.20, v5.3.21, v5.3.22, v5.3.23, v5.3.24, v5.3.25, v5.3.26, v5.3.27, v5.3.28, v5.3.29, v5.3.3, v5.3.30, v5.3.4, v5.3.5, v5.3.6, v5.3.7, v5.3.8, v5.3.9, v5.4.0, v5.4.1, v5.4.2, v5.4.3, v5.4.4, v5.4.5, v5.4.6, v5.4.7, v5.4.8, v5.4.9].
- don't install illuminate/support v5.1.1|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.1.13|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.1.16|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.1.2|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.1.20|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.1.22|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.1.25|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.1.28|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.1.30|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.1.31|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.1.41|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.1.6|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.1.8|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.0|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.19|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.21|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.24|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.25|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.26|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.27|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.28|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.31|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.32|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.37|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.43|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.45|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.6|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.2.7|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.3.0|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.3.16|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.3.23|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.3.4|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.4.0|don't install laravel/framework v4.1.31
- don't install illuminate/support v5.4.9|don't install laravel/framework v4.1.31
- Can only install one of: laravel/framework[v5.4.0, v4.1.31].
- Can only install one of: laravel/framework[v5.4.1, v4.1.31].
- Can only install one of: laravel/framework[v5.4.2, v4.1.31].
- Can only install one of: laravel/framework[v5.4.3, v4.1.31].
- Can only install one of: laravel/framework[v5.4.4, v4.1.31].
- Can only install one of: laravel/framework[v5.4.5, v4.1.31].
- Can only install one of: laravel/framework[v5.4.6, v4.1.31].
- Can only install one of: laravel/framework[v5.4.7, v4.1.31].
- Can only install one of: laravel/framework[v5.4.8, v4.1.31].
- Can only install one of: laravel/framework[v5.4.9, v4.1.31].
- Installation request for laravel/framework (locked at v4.1.31) -> satisfiable by laravel/framework[v4.1.31].
I also have installed others laravel-backpack packages such as lang manager etc without getting any error..can help me on this..thanks!
The showDetailsRow requires access to 'details_row'
$this->crud->hasAccessOrFail('details_row');
but
$this->crud->access
contains only list, create, update, delete.
How can we fix this?
Hi,
how can we assign a role to a user when they register?
i have 2 different roles (admin and client) and now have 2 different registration methods (one from the front-end and second from /admin/)
how can i attach a role to users registering from the front-end?
like user signup, by default they are given role of a client.
thanks.
The issue here might be in the CRUD package and not this one, but I'm only seeing this error in this package.
When I go to edit a user admin/user/1/edit
I get the following error.
ErrorException in Connection.php line 770:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause' (SQL: select * from `users` where `id` = 1 limit 1)
(View: ***/vendor/backpack/crud/src/resources/views/fields/checklist_dependency.blade.php)
(View: ***/vendor/backpack/crud/src/resources/views/fields/checklist_dependency.blade.php)
(View: ***/vendor/backpack/crud/src/resources/views/fields/checklist_dependency.blade.php)
Something somewhere is hard coding that the primary key is id
but in my case, it is user_id
.
In the checklist_dependency field if I hard code from id
to user_id
in the where statement the edit view works but when I go to save I get a 404 at /admin/user/1
with No query results for model [App\Models\User]
. Currently, I cannot find where things are going wrong here.
when i want to load user page it's make this FatalErrorException in Arr.php line 185:
Maximum execution time of 30 seconds exceeded
Hello,
I've been playing this last weeks with Laravel and Backpack and I can say it's awesome!
I've set up a nice permission system to allow CRUD actions following the great discussion in #14
However, I'm trying to create something one step away: create permissions allowing to edit a resource and its children resources. That would mean that a resource would kind of have its own set of permissions, and that if I have a 'Group', I could edit all the articles inside an specific group.
Any idea on how I could implement something similar?
I was thinking on create the set of default permissions on the fly, whenever the parent resource is created. And somehow, I think I'll end with Global permissions, and PerResource permissions, plus copying the permission page inside of the resource, for management...
However, I'm a bit lost on where to start :/
Thanks a lot for the hard work!
composer.lock.zip
composer.lock.zip
For versions I have:
7 "require": {
8 "php": ">=5.6.4",
9 "backpack/base": "^0.7.16",
10 "backpack/crud": "^3.2",
11 "backpack/permissionmanager": "^2.1",
12 "laravel/framework": "5.4.*",
13 "laravel/tinker": "~1.0"
14 },
When I create a user and click on the Save and Back OR Save and New button, I'm always returned to the / (either the index or no slug) URL.
Adding roles/permissions doesn't display this behaviour.
I have the default setup at '/admin' etc (i.e. I haven't changed anything in the config/backpack directory
).
I have no idea how to set permission manager .. i installed permission manager accordingly...
every things are ok but it doesnot work ... i havent make any controller or set routes.... i only done what it said in page..
help me... somehow i manage to set pages and menu item in frontend...
now i am stuck in permission manager..
thank you..
In Backpack\PermissionManager\app\Http\Controllers\UserCrudController
line 117 (Halo reference)
$item = $this->crud->create(\Request::except(['redirect_after_save', 'password']));
returns
General error: 1364 Field 'password' doesn't have a default value (SQL: insert into
users(
name,
email,
updated_at,
created_at) values (test, [email protected], 2016-09-07 06:02:00, 2016-09-07 06:02:00))
looks like It can not create an instance of user without password
I get
Call to undefined method Backpack\PermissionManager\app\Http\Requests\UserUpdateCrudRequest::input()
after trying to edit users and save them while assigning permissions
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.