Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2016-12-29 08:33:21 +00:00
committed by StyleCI Bot
parent 7c87f37b44
commit 4cfb4983b5

View File

@@ -93,17 +93,16 @@ class TeamController extends Controller
if ($request->team_lead) {
$team_lead = $request->team_lead;
$team_update->update([
'team_lead' => $team_lead
'team_lead' => $team_lead,
]);
Assign_team_agent::create([
'team_id' => $team_update->id,
'agent_id' => $team_lead
'team_id' => $team_update->id,
'agent_id' => $team_lead,
]);
} else {
$team_lead = null;
}
/* redirect to Index page with Success Message */
return redirect('teams')->with('success', Lang::get('lang.teams_created_successfully'));
} catch (Exception $e) {