Solution for "unique 2 column in model laravel"

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

laravel unique multiple columns

Similar codes for "unique 2 column in model laravel"


Latest 'PHP' questions

Added before "unique 2 column in model laravel"