In my laravel project I am using repository pattern. I created following method to get brand name from the brand table.
public function getBrandByName($name){
return $this->model->where('name','=',$name)->first();
}
In brand table I have record with name = "BrandOne". But when I call method getBrandByName('brandone') or getBrandByName('BrandOne') I get the record. I only need to get the record with case sensitivity. How can I do that?
Thank you
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire