1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the IndoBank package. |
||
5 | * |
||
6 | * (c) Andri Desmana <andridesmana.pw | [email protected]> |
||
7 | * |
||
8 | */ |
||
9 | |||
10 | namespace Database\Seeders; |
||
11 | |||
12 | use Illuminate\Database\Seeder; |
||
0 ignored issues
–
show
|
|||
13 | use Andes2912\IndoBank\RawDataGetter; |
||
14 | use Illuminate\Support\Facades\DB; |
||
0 ignored issues
–
show
The type
Illuminate\Support\Facades\DB was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
15 | |||
16 | class IndoBankSeeder extends Seeder |
||
17 | { |
||
18 | /** |
||
19 | * Run the database seeds. |
||
20 | * |
||
21 | * @deprecated |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | public function run() |
||
26 | { |
||
27 | // Get Data |
||
28 | $banks = RawDataGetter::getBanks(); |
||
29 | |||
30 | // Insert Data to Database |
||
31 | DB::table('banks')->insert($banks); |
||
32 | } |
||
33 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths