Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

refresh laravel model

$book = Book::where('name', 'Maharani')->first();

$book->name = 'Room on the Roof';

$book->refresh();

$book->name; 
// "Maharani"
COPIED
Source by www.amitmerchant.com #
 
PREVIOUS NEXT
Tagged: #refresh #laravel #model
ADD COMMENT
Topic
Name
2+6 =