Skip to content

Instantly share code, notes, and snippets.

@stillfinder
Created November 27, 2018 04:08
Show Gist options
  • Save stillfinder/6f2a2dc4bcf4c77492e7eec658829005 to your computer and use it in GitHub Desktop.
Save stillfinder/6f2a2dc4bcf4c77492e7eec658829005 to your computer and use it in GitHub Desktop.
LocalValetDriver ?q hack
<?php
if (!isset($_GET['q']) && !empty($uri) && $uri !== '/' && strpos($uri, '/jsonapi/') === false) {
$_GET['q'] = $uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment