Explorar o código

Update PlaceController, require authentication

Daniel Supernault %!s(int64=3) %!d(string=hai) anos
pai
achega
e7783af686
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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);