mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Guess database factory model by default (#5713)
This commit is contained in:
parent
8f63479d44
commit
9915831d22
@ -2,19 +2,11 @@
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class UserFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $model = User::class;
|
||||
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user