ChrisS
ChrisS

Reputation: 744

Location of Class Hash

Just wondering where the class Hash is stored in my Laravel Application, which i use in my UserSeeder:

 $users = [
        [
            "username" => "dummy",
            "password" => Hash::make("testlogin"),
            "email"    => "[email protected]"
        ],

I want to know a little bit about the laravel structure and so on. I found BCryptHasher Class in the vendor/laravel/framework/src/Illuminate but thats not the class I use in my UserSeeder. Can you give me a hint?

Also i found the hash.php in the laravel namespace overview. But i don't know where to find the file in my directory structure.

Upvotes: 0

Views: 658

Answers (1)

c-griffin
c-griffin

Reputation: 3026

This is the entry point:

Illuminate\Support\Facades\Hash.php

This goes after:

Illuminate\Hashing\HashServiceProvider.php

Which instantiates (this is where its methods like make() and check() are):

Illuminate\Hashing\BcryptHasher.php

Upvotes: 1

Related Questions