Hello
Maybe someone could help me...
i want to validate that a site title and url are unique, only where a record is not deleted.
My Rule:
$rules = array(
'title' => 'Required|Between:5,150|unique:sites,title,deleted_at,NULL',
'url' => 'Required|active_url|unique:sites,url,deleted_at,NULL'
);
My fields in the DB is title and url...
Some reason doesn't matter, it allows the submission of the same title/url
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community