Don't fetch all files in regular web controller

parent c17af270
...@@ -38,18 +38,11 @@ class MediaController extends AdminBaseController ...@@ -38,18 +38,11 @@ class MediaController extends AdminBaseController
$this->thumbnailsManager = $thumbnailsManager; $this->thumbnailsManager = $thumbnailsManager;
} }
/** public function index() : \Illuminate\View\View
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{ {
$files = $this->file->all();
$config = $this->config->get('asgard.media.config'); $config = $this->config->get('asgard.media.config');
return view('media::admin.index', compact('files', 'config')); return view('media::admin.index', compact('config'));
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment