Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel set field unique

Schema::table('manufacturers', function($table)
{
    $table->string('name')->unique(); 
});
Source by laravel.io #
 
PREVIOUS NEXT
Tagged: #laravel #set #field #unique
ADD COMMENT
Topic
Name
1+8 =