Skip to content

Commit

Permalink
simplify factory
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 6, 2017
1 parent 164acc8 commit c5add7a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions database/factories/UserFactory.php
@@ -1,6 +1,5 @@
<?php

use App\User;
use Faker\Generator as Faker;

/*
Expand All @@ -14,8 +13,7 @@
|
*/

/* @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(User::class, function (Faker $faker) {
$factory->define(App\User::class, function (Faker $faker) {
static $password;

return [
Expand Down

2 comments on commit c5add7a

@iMokhles
Copy link

@iMokhles iMokhles commented on c5add7a Sep 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my phpstorm didn't like it undefined variable $factory :(
i had to put this back /* @var \Illuminate\Database\Eloquent\Factory $factory */

@antonkomarev
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm keeping it in all factory files too.

Please sign in to comment.