Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcmatters/laravel-user-commands
https://github.com/mcmatters/laravel-user-commands
laravel laravel-command laravel-package
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mcmatters/laravel-user-commands
- Owner: MCMatters
- Created: 2017-06-27T22:12:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-14T09:04:38.000Z (over 4 years ago)
- Last Synced: 2024-11-27T20:19:21.724Z (about 2 months ago)
- Topics: laravel, laravel-command, laravel-package
- Language: PHP
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Laravel User Commands
Package with laravel user commands.
### Installation
```bash
composer require mcmatters/laravel-user-commands
```Include the service provider within your `config/app.php` file.
```php
'providers' => [
McMatters\UserCommands\ServiceProvider::class,
]
```Publish the configuration.
```bash
php artisan vendor:publish --provider="McMatters\UserCommands\ServiceProvider"
```Then open the `config/user-commands.php` and configure namespaces for your models.
### Requirements
This package requires php `7.0` or higher and Laravel `5.2` or higher.
### Usage
Available commands:
* `php artisan user:assign-role {user} {role}` - Attach role for given user
* `php artisan user:sanitize` - Sanitize all user emails. You can configure which users should be taken through the scopes
* `php artisan user:update-password {user}` - Update password for given user