Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel eloquent tricks


$post = Post::find($id);
$post->views++;
$post->save();
Source by laravelproject.com #
 
PREVIOUS NEXT
Tagged: #Laravel #eloquent #tricks
ADD COMMENT
Topic
Name
7+1 =