本文整理匯總了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'));
}
示例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'));
}
示例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;
}
示例4: all
public function all()
{
return File::all();
}
示例5: GetAllFiles
public static function GetAllFiles()
{
$files = File::all();
return $files;
}
示例6: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
//
$files = File::all();
return $files;
}
示例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]);
}
示例8: index
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$alldata = File::all();
return view('file.index', compact('alldata'));
}
示例9: index
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return response()->json(['data' => File::all()], 200);
}
示例10: index
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$files = File::all();
return response()->json(['data' => $files], 200);
}
示例11: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
//
$files = File::all();
return view('files.index', compact('files'));
}