From ef21f6ae1f950a8eea6bc9ed522087321e61b6a4 Mon Sep 17 00:00:00 2001 From: merdan Date: Sat, 28 Mar 2020 13:17:58 +0500 Subject: [PATCH] Venues public ready for Test --- app/Http/Controllers/PublicController.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index 8d1d8ed2..8400f3f5 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -24,20 +24,20 @@ use Illuminate\Support\Facades\DB; class PublicController extends Controller { public function showHomePage(){ - $cinema = Category::where('view_type','cinema') - ->categoryLiveEvents(16) - ->take(1); +// $cinema = Category::where('view_type','cinema') +// ->categoryLiveEvents(16) +// ->take(1); $cartoon = Category::where('view_type','exhibition')//todo change to cartoon multik ->categoryLiveEvents(16) - ->take(1) - ->union($cinema); + ->take(1); +// ->union($cinema); -// $musical = Category::where('view_type','concert') -//// ->categoryLiveEvents(8) -// ->take(1) -// ->union($cartoon); - $all = $cartoon->get(); + $musical = Category::where('view_type','concert') +// ->categoryLiveEvents(8) + ->take(1) + ->union($cartoon); + $all = $musical->get(); dd($all);