Lot's of bug fixes
This commit is contained in:
parent
ad320963fc
commit
7718ed6c32
196 changed files with 51167 additions and 3010 deletions
|
@ -29,15 +29,7 @@ class ShowController extends Controller
|
|||
*/
|
||||
public function index()
|
||||
{
|
||||
$shows = Show::join('show_dates', 'show_dates.show_id', '=', 'shows.id')
|
||||
->whereRaw('`show_dates`.`date` > CURDATE()')
|
||||
->select('shows.*')->get()->all();
|
||||
|
||||
$data = [];
|
||||
foreach($shows as $show)
|
||||
if(!empty($show->getShowDates(Auth::user()->uuid)))
|
||||
array_push($data, $show);
|
||||
|
||||
$shows = DB::select(DB::raw('SELECT t1.* FROM `shows` AS t1 RIGHT JOIN `show_dates` AS t2 ON t1.`id` = t2.`show_id` WHERE t2.`date` > CURDATE() GROUP BY t1.`id`'));
|
||||
return view('show')->with([
|
||||
'shows' => $shows
|
||||
]);
|
||||
|
|
Reference in a new issue