public function index()
    {
        save_resource_url();
        $items = Document::with('documentable')->get();

        return $this->view('titan::documents.index')->with('items', $items);
    }
public function index()
    {
        save_resource_url();
        $items = Document::with('documentable')->get();

        return $this->view('titan::documents.index')->with('items', $items);
    }
public function index ( ) { save_resource_url ( ) ; $ items = Document :: with ( 'documentable' ) -> get ( ) ; return $ this -> view ( 'titan::documents.index' ) -> with ( 'items' , $ items ) ; }
Display a listing of document.

@return Response
Display a listing of document .