/** * Seed the confer tables of the application. * * @return void */ public function run() { $conversation = Conversation::create(['name' => 'Global', 'is_private' => false]); foreach (User::all() as $user) { $user->conversations()->attach($conversation->id); } }
public function showInvite(Conversation $conversation) { $potential_invitees = $conversation->getPotentialInvitees(); return view('confer::invite', compact('conversation', 'potential_invitees')); }