本文整理匯總了PHP中app\Image::paginate方法的典型用法代碼示例。如果您正苦於以下問題:PHP Image::paginate方法的具體用法?PHP Image::paginate怎麽用?PHP Image::paginate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類app\Image
的用法示例。
在下文中一共展示了Image::paginate方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: show
/**
* DISPLAY BACKEND ---- MAY NEED TO WIRE UP TO ROUTEu.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
$images = Image::paginate(10);
return view('images.image-backend')->with('images', $images);
}
示例2: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
//
$images = Image::paginate(10);
return view('image.images-list')->with('images', $images);
}
示例3: index
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
// todo use paginate
$images = Image::paginate(1);
return view('image.home', ['images' => $images]);
}
示例4: index
public function index()
{
$images = Image::paginate(15);
$picture = Image::all()->first();
return view('gallery', compact('images', 'picture'));
}
示例5: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
$imagenes = Image::paginate(15);
//
return view('imagenes', ['imagenes' => $imagenes]);
}
示例6: getIndex
/**
* Show all images
*/
public function getIndex()
{
$images = \App\Image::paginate(36);
return view('images.index')->with('images', $images);
}
示例7: index
public function index()
{
$image = Image::paginate(10);
return view('admin.image.index', compact('image'));
}