app/Http/Controllers/Controller.php
/**
     * Display a listing of the resource.
     *
     * @return Response
     */
Display a listing of the resource.
@return Response
Display a listing of the resource . @return Response
public function index()
    {
        $data = $this->repository->index();
        return view($this->viewName . '.index', $data);
    }
public function index ( ) { $ data = $ this -> repository -> index ( ) ; return view ( $ this -> viewName . '.index' , $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .