Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check if any field update laravel

If you want to check if the model is dirty just call wasChanged():

if($product->wasChanged()){
    // changes have been made
}
 
PREVIOUS NEXT
Tagged: #check #field #update #laravel
ADD COMMENT
Topic
Name
5+7 =