public function settings()
 {
     $platforms = \App\Platform::all();
     $countries = \App\Country::orderBy('name', 'asc')->get();
     return view('user/settings', compact('platforms', 'countries'));
 }
示例#2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     // Get all platforms from database
     $platforms = Platform::all();
     return view('platforms.index')->with('title', 'Platforms')->with('heading', 'Platforms')->with('platforms', $platforms);
 }