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:
@ttimot24 fantastic laravel support, many thanks friend :)
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.