PHP code example of bitboss-hub / laravel-terminal-users
1. Go to this page and download the library: Download bitboss-hub/laravel-terminal-users 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/ */
bitboss-hub / laravel-terminal-users example snippets
return [
/**
* With field to check when the user can prompt. Ex: email, id
*/
'field_to_check' => 'email',
/**
* Which field to update. Ex: password
*/
'field_to_update' => 'password',
/**
* Should the password be encrypted? Default value: hash. Possible values: plain
*/
'hash' => 'hash',
/**
* Which is the authenticable model? If null, we get it from the auth configuration
*/
'model' => null,
/**
* Express optional password validation using Laravel Validation syntax
*/
'validation' => null
];