Hi!
I guess you have to set multiple unique columns. You can do it with unique or primary property.
$table->unique(array('mytext', 'user_id'));
$table->primary(['first', 'second']);
Like they said here:
http://stackoverflow.com/questions/20065697/schema-builder-laravel-migrations-unique-on-two-columns
@ttimot24 fantastic laravel support, many thanks friend :)
$table->unique(array('mytext', 'user_id'));
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community