Skip to content

Instantly share code, notes, and snippets.

@zanematthew
Created August 6, 2016 18:44
Show Gist options
  • Save zanematthew/86857f46b1753a92f7b3e4ed9c498af9 to your computer and use it in GitHub Desktop.
Save zanematthew/86857f46b1753a92f7b3e4ed9c498af9 to your computer and use it in GitHub Desktop.
Laravel Getting a request
<?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