Example #1
0
 public function Veljaverktaka($username)
 {
     $input = Request::all();
     $verkmann = Verktakar::find($input['post_id']);
     $user = User::get()->where('username', $input['post_user'])->first();
     $user->verkefni = $input['post_title'];
     $verkmann->starfsmadur = $input['post_user'];
     $user->save();
     $verkmann->save();
     Verkefnaferills::Create($input);
     return redirect()->back();
 }