Update SnippetController.php

Prevent direct access