/** * Store a newly created resource in storage. * * @return Response */ public function store(CreateExpadition $request) { $input = $request->all(); $creator = \Auth::user()->id; $expedition = new Expedition(); $expedition->title = $input['title']; $expedition->location = $input['location']; $expedition->date = $input['date']; $expedition->description = $input['description']; $expedition->user_id = $creator; // image $expedition->save(); $expfriends = new Expfriend(); $expfriends->expedition_id = $expedition->id; $expfriends->user_id = $creator; $expfriends->creator_id = $creator; $expfriends->save(); return redirect('story/' . $story->id . '/edit'); }