АМ
Size: a a a
АМ
T
АМ
А
А
А
С
С
С
public function getTopList($category)
{
return Bulletin::published()
->bySite(array_wrap($category))
->orderBy('published_at', 'DESC')
->when($category === 'auto', function ($top) {
return $top
->whereNotNull('alias')
->whereNotNull('content')
->whereNull('file_name');
}, function ($top) {
return $top->limit($this->announceCount);
})->get();
}
С
OS
public function getTopList($category)
{
return Bulletin::published()
->bySite(array_wrap($category))
->orderBy('published_at', 'DESC')
->when($category === 'auto', function ($top) {
return $top
->whereNotNull('alias')
->whereNotNull('content')
->whereNull('file_name');
}, function ($top) {
return $top->limit($this->announceCount);
})->get();
}
С
С
OS
AK
public function getTopList($category)
{
return Bulletin::published()
->bySite(array_wrap($category))
->orderBy('published_at', 'DESC')
->when($category === 'auto', function ($top) {
return $top
->whereNotNull('alias')
->whereNotNull('content')
->whereNull('file_name');
}, function ($top) {
return $top->limit($this->announceCount);
})->get();
}
C
С
С
AK