Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel eloquent save method return value

the PHP laravel -> eloquent ORM -> save() method returns true OR false in case the insert operation failed, so it's a good practice to put it inside if() clause for extra checks
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #eloquent #save #method #return
ADD COMMENT
Topic
Name
2+6 =