app/Http/Controllers/AdController.php
/**
     * Display a listing of all the existing ads.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of all the existing ads.
@return \Illuminate\Http\Response
Display a listing of all the existing ads . @return \ Illuminate \ Http \ Response
public function index()
    {
        $ads = Ad::all();
        return view('ads.index', compact('ads'));
    }
public function index ( ) { $ ads = Ad :: all ( ) ; return view ( 'ads.index' , compact ( 'ads' ) ) ; }
Display a listing of all the existing ads.
Display a listing of all the existing ads .