/** * Display a listing of the resource. * GET /admin\document * * @return Response */ public function index() { View::share('title', 'Dokumentumok'); $this->layout->content = View::make('admin.document.index')->with('documents', Document::all(['id', 'name', 'path', 'created_at'])); }
/** * Display a listing of the resource. * GET /site\document * * @return Response */ public function index() { View::share('title', 'Dokumentumok'); $this->layout->content = View::make('site.document.index')->with('documents', Document::all()); }