vendredi 6 janvier 2017

Method links does not exist

Im getting this error when i do like this. I want that my search is case insensitive. Any suggestion?

  $articles = Articles::whereHas('translations',function($query) use($search){
    $query->whereRaw('LOWER(`title`) like ?', array( $search))
    ->orWhereRaw('LOWER(`intro`) like ?', array( $search))
    ->orWhereRaw('LOWER(`content`) like ?', array( $search));
  })->get();



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2iJq8jV
via IFTTT

Aucun commentaire:

Enregistrer un commentaire