Skip to content

Instantly share code, notes, and snippets.

@AdrienPoupa
Last active October 22, 2017 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdrienPoupa/a0755f1ab297670fca935ad3581633bd to your computer and use it in GitHub Desktop.
Save AdrienPoupa/a0755f1ab297670fca935ad3581633bd to your computer and use it in GitHub Desktop.
Laravel
Replace old-style $_GET and $_POST by $request->input
Search: \$_POST\['(\w*)']
Replace: \$request->input('$1')
Replace isset(...) by $request->has
Search: isset\(\$_POST\['(\w*)']\)
Replace: \$request->has('$1')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment