コード例 #1
0
ファイル: DeliverableController.php プロジェクト: smhillin/p4
 public function teamworkTest()
 {
     $clients = \Teamwork::company()->all();
     $clients = $clients->companies;
     foreach ($clients as $client) {
         dd($clients);
     }
 }
コード例 #2
0
ファイル: TeamworkTest.php プロジェクト: mpociot/teamwork
 public function testCanInviteToTeamWithoutCallback()
 {
     auth()->login($this->user);
     $email = "*****@*****.**";
     $team = TeamworkTeam::create(['name' => 'test']);
     $this->user->attachTeam($team);
     \Teamwork::inviteToTeam($email);
     $this->seeInDatabase(config('teamwork.team_invites_table'), ['email' => '*****@*****.**', 'team_id' => $team->getKey()]);
 }