Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #396
    jacob_smith
    Participant

    How to hash the password below:

    */
    public function run(): void
    {
    \App\Models\User::factory(10)->create();

    \App\Models\User::factory()->create([
    ‘name’ => ‘joe’,
    ’email’ => ‘joe@gmail.com’,
    ‘password’ => ‘passsword’
    ]);
    }

    #398

    You can use bcrypt to has the password

    How to hash the password below:

    */
    public function run(): void
    {
    \App\Models\User::factory(10)->create();

    \App\Models\User::factory()->create([
    ‘name’ => ‘joe’,
    ’email’ => ‘joe@gmail.com’,
    ‘password’ => bcrypt(‘passsword’)
    ]);
    }

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.