laravel unique multiple columns
snippet in php

laravel unique multiple columns

user7631

$table->unique(['mytext', 'user_id']);