Created
August 6, 2016 18:44
-
-
Save zanematthew/86857f46b1753a92f7b3e4ed9c498af9 to your computer and use it in GitHub Desktop.
Laravel Getting a request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This is a sample for getting a request | |
Route::get('/request', function (\Illuminate\Http\Request $request) { | |
var_dump($request->input('code')); | |
dd($request); | |
if ($request->has('code')) { | |
$referral = $request->input('code'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment