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