pilot
3/13/2018 - 9:56 PM

cs.php

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