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