title = $request->get('title'); // $post->body = $request->get('body'); // $post->save(); Post::create([ 'title' => $request->get('title'), 'body' => $request->get('body'), ]); return redirect('/'); } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * * @return \Illuminate\Http\Response */ public function update(Request $request, $id) { // } }