Open Naoray opened 4 years ago
When generating a factory for a Model with a password column it will generate the following column in the factory file:
password
'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;
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.
Str
Hash
When generating a factory for a Model with a
password
column it will generate the following column in the factory file:We need to add the import statement at the top or let the developer know that he hast to add it.