Created
November 14, 2021 18:40
-
-
Save leben-jp/ee6f649aa45601b8b9d106dbe7595460 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//view_countを一つカウントダウンする | |
Post::find($post_id)->decreament('view_count'); | |
//ポイントを50減算する | |
User::find($user_id)->decreament('points', 50); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment