當前位置: 首頁>>代碼示例>>PHP>>正文


PHP File::all方法代碼示例

本文整理匯總了PHP中app\File::all方法的典型用法代碼示例。如果您正苦於以下問題:PHP File::all方法的具體用法?PHP File::all怎麽用?PHP File::all使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在app\File的用法示例。


在下文中一共展示了File::all方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: index

 /**
  * 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'));
 }
開發者ID:BDMADE,項目名稱:team1,代碼行數:13,代碼來源:FileController.php

示例2: edit

 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'));
 }
開發者ID:jonavargas,項目名稱:Sistema-Centralizaci-n,代碼行數:11,代碼來源:ConcessionController.php

示例3: exist

 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;
 }
開發者ID:jonavargas,項目名稱:Sistema-Centralizaci-n,代碼行數:11,代碼來源:FileController.php

示例4: all

 public function all()
 {
     return File::all();
 }
開發者ID:mnt,項目名稱:download-neptunium,代碼行數:4,代碼來源:EloquentFileRepository.php

示例5: GetAllFiles

 public static function GetAllFiles()
 {
     $files = File::all();
     return $files;
 }
開發者ID:SuperHentai,項目名稱:netdisk,代碼行數:5,代碼來源:FileDownloadController.php

示例6: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $files = File::all();
     return $files;
 }
開發者ID:urbanix,項目名稱:contract-payments-demo,代碼行數:11,代碼來源:FileController.php

示例7: index

 /**
  * Show a list of all files in the database.
  *
  * @return Response
  */
 public function index()
 {
     $files = File::all();
     return view('file.index', ['files' => files]);
 }
開發者ID:uidaho,項目名稱:squireproject,代碼行數:10,代碼來源:File.php

示例8: index

 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $alldata = File::all();
     return view('file.index', compact('alldata'));
 }
開發者ID:polodev,項目名稱:Bard-Ftfl-Laravel-Project,代碼行數:10,代碼來源:FileController.php

示例9: index

 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return response()->json(['data' => File::all()], 200);
 }
開發者ID:TraianAlex,項目名稱:restfull-api,代碼行數:9,代碼來源:FileController.php

示例10: index

 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $files = File::all();
     return response()->json(['data' => $files], 200);
 }
開發者ID:SeverMateus,項目名稱:TurmaUnida,代碼行數:10,代碼來源:FileController.php

示例11: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $files = File::all();
     return view('files.index', compact('files'));
 }
開發者ID:raniafathy,項目名稱:wavexpo,代碼行數:11,代碼來源:FilesController.php


注:本文中的app\File::all方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。