本文整理汇总了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'));
}