laravel-shift / laravel-shift/factory-generator

[Bug] Hash Facade is not imported

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.