Exemple #1
0
 public static function getCraftsLike($searchItem, $pagination = 10)
 {
     $searchItem = '%' . $searchItem . '%';
     return Craft::where('description', 'LIKE', $searchItem)->orWhere('title', 'LIKE', $searchItem)->paginate($pagination);
 }