This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User::query() | |
->where('name', 'LIKE', "%{$searchTerm}%") | |
->orWhere('email', 'LIKE', "%{$searchTerm}%") | |
->get(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
collect($locales)->each(function (string $locale) { | |
collect($fields)->each(function (Field $field) use ($locale) | |
$this->doSomeWork($locale, $field); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commaStringFormatter = (speechArray) => { | |
formattedString = [speechArray.slice(0, -1).join(', '), speechArray.slice(-1)[0]].join(speechArray.length < 2 ? '' : ', and '); | |
return formattedString; | |
} |
NewerOlder