lse123's avatar

what password hash is the Laravel using for Passwords???

what password hash is the Laravel 8.x using for Passwords???

I needed to create the ONE USER needed for the app, only one manually, without the Register form because Not needed this form... well?

0 likes
7 replies
Sinnbeck's avatar

And easy solution is to just run php artisan tinker and then paste these lines one at the time (replace with your own info)

$user = new App\Models\User();
$user->password = Hash::make('the-password-of-choice');
$user->email = '[email protected]';
$user->name = 'My Name';
$user->save();
lse123's avatar

I use Vagrant/Homestead/Laravel 8.x run the cmd from the root of Laravel app:

php artisan tinker

but the lines/statements from where run??? to create a user?

laracoft's avatar

php artisan tinker is waiting for your input correct?

Paste the lines in, 1 by 1.

lse123's avatar

ok I will try soon,...

for another project Laravel 8.x

I ran the:

php artisan jetstream:install livewire

but, I wanted to remove this command created files and rerun this time - the plain auth generation:

php artisan make:auth

for plain auth, how to REMOVE THE EXISTING FILES [php artisan jetstream:install livewire]????

laracoft's avatar

If you can't get it to work, open routes\console.php and add the following

Artisan::command('adduser', function () {
$user = new App\Models\User();
$user->password = Hash::make('the-password-of-choice');
$user->email = '[email protected]';
$user->name = 'My Name';
$user->save();
})->describe('Add user');

Then run cmd from root of Laravel app:

php artisan adduser

laracoft's avatar

@lse123 please start another discussion for your jetstream:install make:auth question.

Please or to participate in this conversation.