public function veljamann($username) { $input = Request::all(); $vefmann = Vefspurn::find($input['post_id']); $user = User::get()->where('username', $input['post_user'])->first(); $user->verkefni = $input['post_title']; $vefmann->starfsmadur = $input['post_user']; $user->save(); $vefmann->save(); Verkefnaferills::Create($input); return redirect()->back(); }