Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function handle() |
||
15 | { |
||
16 | $firstUser = config('messenger.firstUserId'); |
||
17 | $secondUser = config('messenger.secondUserId'); |
||
18 | |||
19 | \factory(Thread::class)->create(['from_user_id' => $firstUser, 'to_user_id' => $secondUser]); |
||
20 | \factory(Message::class)->create(['thread_id' => 1, 'user_id' => $firstUser, 'body' => 'Hi! Thanks for trying out laravel messenger package!']); |
||
21 | \factory(Message::class)->create(['thread_id' => 1, 'user_id' => $secondUser, 'body' => 'Hey! Let me try it and I\'ll get back to you']); |
||
22 | \factory(Message::class)->create(['thread_id' => 1, 'user_id' => $firstUser, 'body' => 'How is it working for you?']); |
||
23 | \factory(Message::class)->create(['thread_id' => 1, 'user_id' => $secondUser, 'body' => 'Works great! But it is missing group messaging']); |
||
24 | \factory(Message::class)->create(['thread_id' => 1, 'user_id' => $firstUser, 'body' => 'Sure that was the idea! Just a simple messenger and that is it! Make a pull request if you want to add some changes to it!']); |
||
25 | |||
26 | \factory(Thread::class, 5)->create(); |
||
27 | \factory(Message::class, 60)->create(); |
||
28 | |||
29 | $this->info('Generated 3 fake threads and 65 fake messages between first and second users defined in config file'); |
||
30 | } |
||
31 | } |
||
32 |