/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // This gets all rows and all columns from the players table. // If you want to change this. You can select specific columns by passing an array of the column names in all() $matches = Match::orderBy('id', 'asc')->get(); return view('matches.index', compact('matches')); }