コード例 #1
0
ファイル: ConferSeeder.php プロジェクト: emtudo/confer-demo
 /**
  * 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);
     }
 }
コード例 #2
0
 public function showInvite(Conversation $conversation)
 {
     $potential_invitees = $conversation->getPotentialInvitees();
     return view('confer::invite', compact('conversation', 'potential_invitees'));
 }