/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $entries = Fileentry::all(); // return view('fileentries.index', compact('entries')); $files = Fileentry::all(); return view('filePages.files-list')->with('files', $files); }
/** * Remove the specified resource from storage. * * @param \App\Fileentry $filename * @return Response */ public function destroy($filename) { //$filename->delete(); $entry = Fileentry::where('filename', '=', $filename)->firstOrFail(); $entry->delete(); Storage::disk('local')->delete($entry->filename); $entries = Fileentry::all(); return Redirect('superadmin/filemanager')->with('message', 'File deleted.')->with('entries', $entries); // show after destroy post //return view('posts.show', compact('post')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $entries = Fileentry::all(); $providers = Providers::latest()->get(); return view('fileentries.index', compact('entries', 'providers')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $entries = Fileentry::all(); return view('admin.fileentries.index', compact('entries')); }
public function index() { $entries = Fileentry::all(); return view('fileentry/fileentries', compact('entries')); }