If you want to go to edit page after saving an item , here is the code
$data = $request->only('title', 'body'); $item = Item::create($data); return redirect()->route('edit_item',['id'=> $item->id]);
If you want to go to edit page after saving an item , here is the code
$data = $request->only('title', 'body'); $item = Item::create($data); return redirect()->route('edit_item',['id'=> $item->id]);