I have this schema:
Schema::create('members', function(Blueprint $table)
{
$table->increments('id');
$table->string('lname');
$table->string('fname');
$table->integer('mname');
$table->unique(array('lname', 'fname'));
});
My problem is, how to validate these unique fields?
I tried this but I know this is wrong...
public static $rules = array(
'lname' => 'unique:members',
'fname' => 'unique:members'
);
Any help is appreciated.. :)