Answers for "faker image laravel"

PHP
0

random number laravel faker

$faker->numerify('###-###-####');
// "766-620-7004"

$faker->numerify('##########');
// "3579786681"
Posted by: Guest on December-19-2020
0

faker image laravel

use Faker\Generator as Faker; 
$factory->define(Product::class, function (Faker $faker) {
    return [

        'amount' => $faker->randomFloat(2, 0, 10000),
        'image' => $faker->image('public/storage/images',640,480, null, false),

    ];
});
Posted by: Guest on August-16-2021

Browse Popular Code Answers by Language