Posts

Showing posts with the label artisan

A non-numeric value encountered Laravel5.5 on Migration

A non-numeric value encountered Laravel5.5 on Migration I am getting this error [ErrorException] A non-numeric value encountered when I give an artisan command php artisan migrate:fresh --seed . [ErrorException] A non-numeric value encountered php artisan migrate:fresh --seed This issue arised when I upgraded to php 7.1 in xammp. When I am not seeding the error does not occur. Below is the model factory $factory->define(AppClients::class, function (Faker $faker) { return [ 'firstname' => $faker->firstName($gender = null|'male'|'female'), 'lastname' => $faker->lastName($gender = null|'male'|'female'), 'email' => $faker->unique()->safeEmail, 'phone' => $faker->e164PhoneNumber(), 'country' => $faker->country(), 'university' => $faker->city() ]; }); Is there a workaround on this issue? Thanks in advance ...