public function store(Request $request, Team $team)
 {
     $team = Team::create($request->all());
     return response(['data' => $team, 'status' => 'success', 'message' => 'successfully created']);
 }
示例#2
0
 public function store(Request $request, Team $team)
 {
     Team::create($request->all());
     Flash::success('Team has been created successFully!');
     return Redirect::back();
 }