예제 #1
0
 /**
  * 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');
 }
예제 #2
0
 public function destroy($id)
 {
     //
     //$like = Like::find($id);
     //	$user = User::find($like->user_id);
     Like::destroy($id);
     return Redirect::back();
 }
예제 #3
0
 /**
  * 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();
 }