Hi everyone,
Today i will tell you about a tip to increment and decrement any column in Laravel.
$user::find(1)->increment('likes');
$user::find(1)->decrement('likes');
you can use it anywhere where you want.
Hi everyone,
Today i will tell you about a tip to increment and decrement any column in Laravel.
$user::find(1)->increment('likes');
$user::find(1)->decrement('likes');
you can use it anywhere where you want.
For further actions, you may consider blocking this person and/or reporting abuse
Rigby -
Ayush Kumar Vishwakarma -
Encodedots Technolabs -
Harshit Rawat -
Top comments (0)