We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 33 |
Code Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function run() |
||
14 | { |
||
15 | $faker = Faker\Factory::create(); |
||
16 | $now = \Carbon\Carbon::now(); |
||
17 | |||
18 | DB::table('users')->insert([[ |
||
19 | 'id' => 1, |
||
20 | 'name' => $faker->name, |
||
21 | 'email' => $faker->safeEmail, |
||
22 | 'password' => bcrypt('secret'), |
||
23 | 'remember_token' => str_random(10), |
||
24 | 'created_at' => $now, |
||
25 | 'updated_at' => $now, |
||
26 | ]]); |
||
27 | |||
28 | DB::table('user_role')->insert([ |
||
29 | 'user_id' => 1, |
||
30 | 'role_id' => 1, |
||
31 | ]); |
||
32 | |||
33 | DB::table('account_details')->insert([ |
||
34 | 'user_id' => 1, |
||
35 | 'nickname' => $faker->firstName(), |
||
36 | 'profile_picture' => $faker->imageUrl(), |
||
37 | ]); |
||
38 | |||
39 | DB::table('addresses')->insert([ |
||
40 | 'account_details_id' => 1, |
||
41 | 'city' => $faker->city, |
||
42 | 'street' => $faker->streetName, |
||
43 | 'number' => $faker->randomDigitNotNull, |
||
44 | ]); |
||
45 | } |
||
46 | } |
||
47 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.