Exemplo n.º 1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     //
     $this->validate($request, $this->rules);
     $team = new Team();
     if ($team->storeTeam($request)) {
         return redirect('programs/' . Session::get('program'))->with('message', 'Team Added Successfully');
     } else {
         return redirect('programs/' . Session::get('program'))->with('message', 'Fail to Add Team');
     }
 }