Download the PHP package eduardoarandah/usermanager without Composer
On this page you can find all versions of the php package eduardoarandah/usermanager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eduardoarandah/usermanager
More information about eduardoarandah/usermanager
Files in eduardoarandah/usermanager
Package usermanager
Short Description Users management interface for Laravel using Backpack CRUD.
License MIT
Homepage https://github.com/eduardoarandah/UserManager
Informations about the package usermanager
Backpack\UserManager
An admin interface to easily add/edit/remove users, using Backpack for Laravel
Backpack 4
Backpack 3
Security updates and breaking changes
Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.
Install on Backpack v4.1 (Laravel 6 or Laravel 7)
1) In your terminal:
2) Add Backpack's CrudTrait on your User model:
By default: app/User.php
3) [Optional] If your User model is NOT App\User::class
or your users table is not users
, you should publish this package's config file and correct those assumptions in the config/eduardoarandah/usermanager.php
file. To publish file, run:
4) [Optional] Add a sidebar link
(alternatively, manually add an item in or )
Install on Backpack v4.0 (Laravel 6 or Laravel 7)
1) In your terminal:
2) Add Backpack's CrudTrait on your User model:
By default: app/Models/BackpackUser.php
3) [Optional] Add a sidebar link
(alternatively, manually add an item in or )
Install on Backpack v3 (Laravel 5)
1) In your terminal:
2) For Laravel <5.5, add the service provider to your config/app.php file:
3) Use the following traits on your User model:
4) [Optional] Add a menu item for it:
(alternatively, manually add an item in or )
How to extend this package
When you need more control on your user model, the best way is copying the code.
You can even make your own CRUD controller with php artisan backpack:crud user
and simply add handlePasswordInput
addFields
methods in src/app/Http/Controllers/UserCrudController
. See code
To copy source code into your project
Go to vendor/eduardoarandah/usermanager/src
and copy:
- Route:
routes/eduardoarandah/usermanager.php
in yourroutes/web.php
file - Controller
app/Http/Controllers/UserCrudController.php
inside yourapp/Http/Controllers
folder - Requests
app/Http/Requests/*
inside yourapp/Http/Controllers
folder -
In UserCrudController set the model, example:
$this->crud->setModel('App\User'));
- In every file, replace my namespace
EduardoArandaH\UserManager\app\Http\Requests
forApp\Http\Requests
Now you can remove the package with composer:
Documentation for fields (updating/creating)
https://laravel-backpack.readme.io/docs/crud-fields
Documentation for columns (list view)
https://laravel-backpack.readme.io/docs/crud-columns-types
Upgrade from Backpack 4.0 to 4.1
To successfully use this package after you upgrade your project from Backpack 4.0 to Backpack 4.1, you need to:
- require version of this package by changing your file or running ;
- (most likely) change the user model in the usermanager config file from to ;
- (less likely) if you've extended the UserCrudController in this package and you've modified the function, you also need to take account that the crud request in now fetched using setters and getters instead of directly as a property; take a closer look at Step 11 in the Backpack 4.1 upgrade guide, or look at the new code in this package for inspiration;