mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
125 - Pushing Logic Out of the View
This commit is contained in:
@@ -12,7 +12,10 @@ class ConcertsController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view('backstage.concerts.index', ['concerts' => Auth::user()->concerts]);
|
||||
return view('backstage.concerts.index', [
|
||||
'publishedConcerts' => Auth::user()->concerts->filter->isPublished(),
|
||||
'unpublishedConcerts' => Auth::user()->concerts->reject->isPublished(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function create()
|
||||
|
||||
Reference in New Issue
Block a user