home page mobile changed
This commit is contained in:
parent
24983c34e4
commit
24d9dc49e5
|
|
@ -128,8 +128,8 @@ class Category extends \Illuminate\Database\Eloquent\Model{
|
|||
$query->select('id','title_'.Config::get('app.locale'),'description_'.Config::get('app.locale'),'category_id','sub_category_id','start_date')
|
||||
->take($limit)
|
||||
->with('starting_ticket')
|
||||
->withCount(['stats as views' => function($q){
|
||||
$q->select(DB::raw("SUM(views) as v"));}])
|
||||
// ->withCount(['stats as views' => function($q){
|
||||
// $q->select(DB::raw("SUM(views) as v"));}])
|
||||
->onLive($start_date, $end_date)//event scope onLive get only live events
|
||||
->orderBy($orderBy['field'],$orderBy['order']);
|
||||
}]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue