File tree 6 files changed +10
-10
lines changed
tests/dummy/database/factories
6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class CommentFactory extends Factory
41
41
public function definition ()
42
42
{
43
43
return [
44
- 'content ' => $ this ->faker ->text ,
44
+ 'content ' => $ this ->faker ->text () ,
45
45
'post_id ' => Post::factory (),
46
46
'user_id ' => User::factory (),
47
47
];
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class ImageFactory extends Factory
39
39
public function definition ()
40
40
{
41
41
return [
42
- 'url ' => $ this ->faker ->url ,
42
+ 'url ' => $ this ->faker ->url () ,
43
43
];
44
44
}
45
45
}
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ public function definition()
41
41
{
42
42
return [
43
43
'author_id ' => User::factory (),
44
- 'content ' => $ this ->faker ->text ,
45
- 'published_at ' => $ this ->faker ->dateTimeThisMonth ,
46
- 'slug ' => $ this ->faker ->unique ()->slug ,
47
- 'synopsis ' => $ this ->faker ->sentence ,
44
+ 'content ' => $ this ->faker ->text () ,
45
+ 'published_at ' => $ this ->faker ->dateTimeThisMonth () ,
46
+ 'slug ' => $ this ->faker ->unique ()->slug () ,
47
+ 'synopsis ' => $ this ->faker ->sentence () ,
48
48
'title ' => $ this ->faker ->words (3 , true ),
49
49
];
50
50
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class TagFactory extends Factory
39
39
public function definition ()
40
40
{
41
41
return [
42
- 'name ' => $ this ->faker ->colorName ,
42
+ 'name ' => $ this ->faker ->colorName () ,
43
43
];
44
44
}
45
45
}
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ class UserFactory extends Factory
40
40
public function definition ()
41
41
{
42
42
return [
43
- 'name ' => $ this ->faker ->name ,
44
- 'email ' => $ this ->faker ->unique ()->safeEmail ,
43
+ 'name ' => $ this ->faker ->name () ,
44
+ 'email ' => $ this ->faker ->unique ()->safeEmail () ,
45
45
'email_verified_at ' => now (),
46
46
'password ' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi ' , // password
47
47
'remember_token ' => Str::random (10 ),
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public function definition()
42
42
return [
43
43
'owner_id ' => User::factory (),
44
44
'title ' => $ this ->faker ->words (3 , true ),
45
- 'url ' => $ this ->faker ->url ,
45
+ 'url ' => $ this ->faker ->url () ,
46
46
];
47
47
}
48
48
}
You can’t perform that action at this time.
0 commit comments