Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

db:seed command is not working #2

Open
imvision opened this issue Oct 29, 2018 · 1 comment
Open

db:seed command is not working #2

imvision opened this issue Oct 29, 2018 · 1 comment

Comments

@imvision
Copy link

php artisan db:seed

The output from this command is:

Seeding: AreaTableSeeder
[ErrorException]
count(): Parameter must be an array or an object that implements Countable

@damalayahya
Copy link

add this code at the beginning of AreaTableSeeder.php
if(version_compare(PHP_VERSION, '7.2.0', '>=')) {
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants