Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

create if not exist laravel

if(!Numbers::where('country',$country)->exists()){
    Numbers::Create([
      'country'    => $country
      ]);
}
 
PREVIOUS NEXT
Tagged: #create #exist #laravel
ADD COMMENT
Topic
Name
7+9 =