Example #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //$id = Auth::id();
     //$member = Member::find($id);
     //$files = $member->files;
     $files = File::all();
     return view('vendor/flatAdmin/allFiles', compact('files'));
 }
 public function edit($id)
 {
     $view = Auth::user()->getView();
     $resolutions = Resolution::all();
     $files = File::all();
     $fileTypes = Filetype::all();
     $viabilities = Viability::all();
     $entities = Entity::getEntities();
     $concession = Concession::findOrFail($id);
     return view('concessions.edit', compact('resolutions', 'files', 'fileTypes', 'viabilities', 'concession', 'view', 'entities'));
 }
 public function exist($num)
 {
     $status = False;
     $files = File::all();
     foreach ($files as $file) {
         if (strtolower($this->removeSpace($file->num_file)) == strtolower($this->removeSpace($num))) {
             $status = True;
         }
     }
     return $status;
 }
 public function all()
 {
     return File::all();
 }
 public static function GetAllFiles()
 {
     $files = File::all();
     return $files;
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $files = File::all();
     return $files;
 }
Example #7
0
 /**
  * Show a list of all files in the database.
  *
  * @return Response
  */
 public function index()
 {
     $files = File::all();
     return view('file.index', ['files' => files]);
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $alldata = File::all();
     return view('file.index', compact('alldata'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return response()->json(['data' => File::all()], 200);
 }
Example #10
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $files = File::all();
     return response()->json(['data' => $files], 200);
 }
Example #11
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $files = File::all();
     return view('files.index', compact('files'));
 }