1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2025-01-31 19:34:15 +00:00

Update PlaceController, require authentication

This commit is contained in:
Daniel Supernault 2022-03-30 23:56:46 -06:00
parent 4701b0e8f0
commit e7783af686
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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);