app/Http/Controllers/Dashboard/CountryController.php
/**
   * Display a listing of the resource.
   *
   * @return \Illuminate\Http\Response
   */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
  {
    $countries = DB::table('countries')->get();
    $country_govs = DB::table('countries')->where('from_id', 0)->get();
    return view('dashboard.countries.index', compact('countries', 'country_govs'));
  }
public function index ( ) { $ countries = DB :: table ( 'countries' ) -> get ( ) ; $ country_govs = DB :: table ( 'countries' ) -> where ( 'from_id' , 0 ) -> get ( ) ; return view ( 'dashboard.countries.index' , compact ( 'countries' , 'country_govs' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .