Skip to content

Commit

Permalink
FINAL BUILD
Browse files Browse the repository at this point in the history
Fixed broken images loaded by faker
  • Loading branch information
coolbigbear committed Dec 20, 2019
1 parent 60588c1 commit cd40034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgbook/database/factories/ImageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

static $post_id = 2;

$path = $faker->image($dir = '/home/vagrant/laravel/laravel-web-app/imgbook/storage/app/public/images/tmp', $width = 640, $height = 480);
$path = $faker->image($dir = '/home/vagrant/laravel/laravel-web-app/imgbook/storage/app/public/images/tmp', 500, 500, '', true, false);
$path = explode('public', $path);
$path = '/storage' . $path[1];

Expand Down

0 comments on commit cd40034

Please sign in to comment.