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

[Bug] Hash Facade is not imported #3

Open
Naoray opened this issue Oct 2, 2020 · 1 comment
Open

[Bug] Hash Facade is not imported #3

Naoray opened this issue Oct 2, 2020 · 1 comment

Comments

@Naoray
Copy link
Contributor

Naoray commented Oct 2, 2020

When generating a factory for a Model with a password column it will generate the following column in the factory file:

'password' => Hash::make('password'),

We need to add the import statement at the top or let the developer know that he hast to add it.

use Illuminate\Support\Facades\Hash;
@jasonmccreary
Copy link
Collaborator

Agreed. I noticed this myself the other day. We'll need to loop through the definition and check for common things to import, i.e. Str and Hash.

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