mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-30 11:46:26 +00:00
1.6 - Hiding Unpublished Concerts
This commit is contained in:
@@ -9,7 +9,7 @@ class ConcertsController extends Controller
|
||||
{
|
||||
public function show($id)
|
||||
{
|
||||
$concert = Concert::find($id);
|
||||
$concert = Concert::whereNotNull('published_at')->findOrFail($id);
|
||||
return view('concerts.show', ['concert' => $concert]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user