Skip to content

Instantly share code, notes, and snippets.

@pilot
Created March 13, 2018 21:56
Show Gist options
  • Save pilot/9c708e8c7758ac2f0ed5042b41b67ec7 to your computer and use it in GitHub Desktop.
Save pilot/9c708e8c7758ac2f0ed5042b41b67ec7 to your computer and use it in GitHub Desktop.
<?php
class SomeName extends AnotherClass
{
public function index()
{
$input = Input::all();
$matches = Match::getList($input);
return view('matches.index', ['matches' => $matches, 'input' => $input]);
// if long list of parameters
return view('matches.index', [
'matches' => $matches,
'input' => $input,
'input' => $input,
'input' => $input,
]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment