コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 /**
  * 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'));
 }
コード例 #3
0
 /**
  * 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'));
 }
コード例 #4
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $entries = Fileentry::all();
     return view('admin.fileentries.index', compact('entries'));
 }
コード例 #5
0
 public function index()
 {
     $entries = Fileentry::all();
     return view('fileentry/fileentries', compact('entries'));
 }