本文整理匯總了PHP中Lead::where方法的典型用法代碼示例。如果您正苦於以下問題:PHP Lead::where方法的具體用法?PHP Lead::where怎麽用?PHP Lead::where使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Lead
的用法示例。
在下文中一共展示了Lead::where方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getAllRecords
public static function getAllRecords()
{
$sources = array(Contractor::where('status', '!=', 'deleted')->get(), Review::where('status', '!=', 'deleted')->get(), Service_request::all(), Lead::where('status', '!=', 'deleted')->get(), User::where('status', '!=', 'deleted')->get());
$sources_array = array();
$names_arr = array();
foreach ($sources as $source) {
$source->last()->latest = 'Latest ' . get_class($source->last());
foreach ($source as $record) {
All::formatRecord($record);
}
// $source->first()->classname = get_class($source->first());
array_push($sources_array, json_decode($source, TRUE));
array_push($names_arr, get_class($source->first()));
}
$big_arr = array_merge($sources_array[0], $sources_array[1], $sources_array[2], $sources_array[3], $sources_array[4]);
// return $names_arr;
return $big_arr;
}