laravel column unique code example
Example 1: laravel set field unique
Schema::table('manufacturers', function($table)
{
$table->string('name')->unique();
});
Example 2: laravel rule unique where
'required|email|unique:company_users,email_address,NULL,id,company_id,' . $request->company_id