| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 17 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 10 | public function run()  | 
            ||
| 11 |     { | 
            ||
| 12 | $faker = Faker\Factory::create();  | 
            ||
| 13 | $users = User::all();  | 
            ||
| 14 |         foreach ($users as $user) { | 
            ||
| 15 | UserToken::create(  | 
            ||
| 16 | [  | 
            ||
| 17 | 'user_id' => $user->id,  | 
            ||
| 18 | 'user_ip' => $faker->ipv4,  | 
            ||
| 19 | 'device_token' => $faker->password,  | 
            ||
| 20 | 'device_name' => $faker->colorName,  | 
            ||
| 21 | 'token' => str_repeat($user->id, 6),  | 
            ||
| 22 | 'last_usage' => \Carbon\Carbon::now(),  | 
            ||
| 23 | ]  | 
            ||
| 24 | );  | 
            ||
| 25 | }  | 
            ||
| 26 | }  | 
            ||
| 27 | |||
| 28 | }  |