Browse Source

Update PlaceController, require authentication

Daniel Supernault 3 years ago
parent
commit
e7783af686
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/Http/Controllers/PlaceController.php

+ 5 - 0
app/Http/Controllers/PlaceController.php

@@ -10,6 +10,11 @@ use App\{
 
 class PlaceController extends Controller
 {
+	public function __construct()
+	{
+		$this->middleware('auth');
+	}
+
     public function show(Request $request, $id, $slug)
     {
     	$place = Place::whereSlug($slug)->findOrFail($id);