/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $like = Like::find($id); $post = Post::find($like->post_id); Like::destroy($id); return redirect('users'); }
public function destroy($id) { // //$like = Like::find($id); // $user = User::find($like->user_id); Like::destroy($id); return Redirect::back(); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $like = Like::find($id); Like::destroy($id); return redirect()->back(); }