/**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Request $request)
 {
     if ($tasklist = Tasklist::create($request->all())) {
         return $tasklist->toJson();
     } else {
         return $this->response->error('Tasklist could not be created.', 404);
     }
 }
 public function store(Requests\TasklistRequest $request)
 {
     Tasklist::create($request->all());
     \Session::flash('flash_message', 'Task wurde übernommen!');
     return redirect('tasklist');
 }
示例#3
0
 public function store(Requests\TasklistRequest $request)
 {
     Tasklist::create($request->all());
     \Session::flash('flash_message', trans('back/tasklist.tasklist-added'));
     return redirect('tasklist');
 }