public function zan(Post $post){

  $param=[

    'user_id'=>\Auth::id(),

    'post_id'=>$post->id

  ]

  Zan::firstOrCreate($param);

}

相关文章:

  • 2021-06-14
  • 2021-08-03
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2021-11-05
  • 2021-10-08
  • 2022-12-23
猜你喜欢
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案