laravel-shift / laravel-shift/factory-generator
[Bug] Hash Facade is not imported
- Dominant language
- PHP
- Stars
- 48
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
When generating a factory for a Model with a `password` column it will generate the following column in the factory file:
```php
'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.
```php
use Illuminate\Support\Facades\Hash;
```
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue does not name a source file or test. Locate the factory-generation entry point for password columns, then inspect how generated imports are assembled. Done means generated factories include the Hash facade import or clearly tell developers to add it, and the generated output verifies that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100