Venues public ready for Test

This commit is contained in:
merdan 2020-03-28 13:23:21 +05:00
parent bf8394fc0a
commit de3197cd28
1 changed files with 7 additions and 7 deletions

View File

@ -24,19 +24,19 @@ 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);
->categoryLiveEvents(16)
->take(1)
->unionAll($cinema);
$musical = Category::where('view_type','concert')
// ->categoryLiveEvents(8)
->take(1)
->union($cartoon);
->unionAll($cartoon);
$all = $musical->get();
dd($all);