<?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,
]);
}
}