app/Http/Controllers/AdsController.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()
    {
       $state = State:: All();
       $city = City::All();
       $user=User::All();
        return view('admin.ads.create')->with('state',$state)->with('city',$city)->with('user',$user);
    }
public function index ( ) { $ state = State :: All ( ) ; $ city = City :: All ( ) ; $ user = User :: All ( ) ; return view ( 'admin.ads.create' ) -> with ( 'state' , $ state ) -> with ( 'city' , $ city ) -> with ( 'user' , $ user ) ; }
Display a listing of the resource.
Display a listing of the resource .