Horje
laravel migration remove unique constraint Code Example
laravel migration remove unique constraint
/** To drop an index you must specify the index's name. 
Laravel assigns a reasonable name to the indexes by default. 
Simply concatenate the table name, the names of the column in the index, 
and the index type **/

// Format of unique key tableName_column_unique
$table->dropUnique('users_email_unique');
laravel migration remove unique
//The UNique need be a constraint name
// This name has this format:
// [TABLE_NAME]_[COLUMN_NAME]_unique
// For 'users' table and 'user_code' column, whe get the name:
// users_user_code_unique
$table->dropUnique('users_user_code_unique');

//The inverst is 
$table->unique('user_code');




Php

Related
php switch Code Example php switch Code Example
check session in blade laravel Code Example check session in blade laravel Code Example
php encode url parameters Code Example php encode url parameters Code Example
php urlencodedtext Code Example php urlencodedtext Code Example
get json from url php Code Example get json from url php Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7