jeudi 18 juillet 2019

Multiple Where Clause in Eloquent & Laravel

Trying to do a multiple select statement with eloquent.

used the Blog::where() ... function, and included an array in it.

$matchThese = ['title' => post('title'), 'slug' => post('slug')];
 return Blog::where($matchThese)->get();

When tested it returns an empty value even for matching inputs, database table names correctly written



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire