Permalink
Browse files

simplify factory

  • Loading branch information...
taylorotwell committed May 6, 2017
1 parent 164acc8 commit c5add7ab7293c475dcb9ab8a6d4cf768eee6cee4
Showing with 1 addition and 3 deletions.
  1. +1 −3 database/factories/UserFactory.php
@@ -1,6 +1,5 @@
<?php
use App\User;
use Faker\Generator as Faker;
/*
@@ -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 [

2 comments on commit c5add7a

@iMokhles

This comment has been minimized.

Show comment
Hide comment
@iMokhles

iMokhles Sep 9, 2017

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

iMokhles replied Sep 9, 2017

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

@antonkomarev

This comment has been minimized.

Show comment
Hide comment
@antonkomarev

antonkomarev Sep 9, 2017

I'm keeping it in all factory files too.

antonkomarev replied Sep 9, 2017

I'm keeping it in all factory files too.

Please sign in to comment.