Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin Login Credential #12

Open
suprinman opened this issue Jan 16, 2020 · 1 comment
Open

Admin Login Credential #12

suprinman opened this issue Jan 16, 2020 · 1 comment

Comments

@suprinman
Copy link

How can we add admin users?

@mahmudtopu3
Copy link

Use laravel tinker to create admin account
$ php artisan tinker
use App\Model\admin\admin;

$admin = new admin();
=> App\Model\admin\admin {#3907}
$admin->name = "demouser"
=> "demouser"
$admin->email = "[email protected]"
=> "[email protected]"
$admin->password = bcrypt('123')
=> "$2y$10$hJRr/p2q/EFbjtWIh8jcxeXTQR65WaYSiYdb1oZcjK4CafLpdCH1u"
$admin->phone = 01111111
=> 154554
$admin->status = 1
=> 1
$admin->save();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants