/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $platforms = Platform::all(); $platform_levels = PlatformLevel::all(); return view("platform/index")->with('PlatformArray', $platforms)->with('PlatformLevelArray', $platform_levels); }