PHP code example of newtovaux / laravel-console-user-tools

1. Go to this page and download the library: Download newtovaux/laravel-console-user-tools library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

newtovaux / laravel-console-user-tools example snippets


return [
    'user_model' => env('USER_TOOLS_USER_MODEL', config('auth.providers.users.model', App\Models\User::class)),
    'lookup_column' => env('USER_TOOLS_LOOKUP_COLUMN', 'email'),
    'generated_length' => (int) env('USER_TOOLS_GENERATED_LENGTH', 20),
];
bash
php artisan vendor:publish --tag=user-tools-config
bash
php artisan user-tools:create
php artisan user-tools:create --length=24
php artisan user-tools:create --no-symbols
php artisan user-tools:create --length=32 --no-symbols
bash
php artisan user-tools:user-password [email protected]
php artisan user-tools:user-password [email protected] --password='new-password-123'
php artisan user-tools:user-password [email protected] --generate
php artisan user-tools:user-password [email protected] --generate --length=24
php artisan user-tools:user-password 15 --column=id
php artisan user-tools:user-password 15 --column=id --password='new-password-123'
bash
php artisan user-tools:list-users
php artisan user-tools:list-users --limit=50
bash
php artisan user-tools:user-amend-email [email protected]
php artisan user-tools:user-amend-email 15 --column=id
php artisan user-tools:user-amend-email [email protected] [email protected]
php artisan user-tools:user-amend-email 15 --column=id [email protected]
bash
php artisan vendor:publish --tag=user-tools-config