示例#1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     //
     $files = File::where('created_by', Auth::user()->id)->where('folder_id', $id)->get();
     $folders = Folder::where('created_by', Auth::user()->id)->get();
     $folder = Folder::findOrFail($id);
     return view('view-folder')->with('folder', $folder)->with('folders', $folders)->with('files', $files);
 }
示例#2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $folders = Folder::where('created_by', Auth::user()->id)->get();
     return view('file-creation')->with('folders', $folders);
 }