validate unique laravel 2 fields code example Example: laravel unique multiple columns $table->unique(['mytext', 'user_id']);