app/Http/Controllers/SliderController.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()
    {
        $title = "Sliders";
        $sliders = Sliders::get();
        return view('sliders.index', compact('title','sliders'));
    }
public function index ( ) { $ title = " Sliders " ; $ sliders = Sliders :: get ( ) ; return view ( 'sliders.index' , compact ( 'title' , 'sliders' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .