app/Http/Controllers/Dashboard/AddstoreController.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()
    {
        $categories = DB::table('categories')->get();
        $country_govs = DB::table('countries')->where('from_id', 0)->get();
        return view('dashboard.addstore.create',compact('categories','country_govs'));
    }
public function create ( ) { $ categories = DB :: table ( 'categories' ) -> get ( ) ; $ country_govs = DB :: table ( 'countries' ) -> where ( 'from_id' , 0 ) -> get ( ) ; return view ( 'dashboard.addstore.create' , compact ( 'categories' , 'country_govs' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .