Skip to content

Conversation

@peterfox
Copy link
Collaborator

@peterfox peterfox commented Oct 26, 2024

Changes

  • Adds RequestVariablesToRequestFacadeRector rule
  • Adds tests
  • Updates Docs

Why

Provides a nice transition from vanilla PHP to Laravel code.

-$_GET['value'];
-$_POST['value'];
-$_GET['value']['sub_value'];
+\Illuminate\Support\Facades\Request::input('value');
+\Illuminate\Support\Facades\Request::input('value');
+\Illuminate\Support\Facades\Request::input('value.sub_value');

@peterfox peterfox added the enhancement New feature or request label Oct 26, 2024
@peterfox peterfox self-assigned this Oct 26, 2024
@GeniJaho GeniJaho merged commit 7fbb1de into main Oct 26, 2024
5 checks passed
@GeniJaho GeniJaho deleted the feature/global-to-request-facade branch October 26, 2024 13:46
@TomasVotruba
Copy link
Collaborator

Epic, I'll definitely use this one 🤗 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants