当前位置: 首页>>代码示例>>PHP>>正文


PHP Client::paginate方法代码示例

本文整理汇总了PHP中app\Client::paginate方法的典型用法代码示例。如果您正苦于以下问题:PHP Client::paginate方法的具体用法?PHP Client::paginate怎么用?PHP Client::paginate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在app\Client的用法示例。


在下文中一共展示了Client::paginate方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ver

 public function ver($id)
 {
     $clientes_actuales = Client::paginate(5);
     $clientes = Client::findOrFail($id);
     $user = User::all()->lists('username', 'id');
     $selected = array();
     return view('clientes.ver', compact('clientes', 'user', 'selected', 'clientes_actuales'));
 }
开发者ID:jdiaz1989,项目名称:intranet,代码行数:8,代码来源:ClientesController.php

示例2: index

 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     if (Auth::user()['role'] == 'Sales') {
         $clients = Client::where('user_id', Auth::user()['id'])->paginate(10);
     } else {
         // $clients = Client::all();
         $clients = Client::paginate(10);
         //$clients->setpath('hsms/public/clients/');
     }
     return view('clients.index', compact('clients'));
 }
开发者ID:jacqhernandez,项目名称:hsms,代码行数:16,代码来源:ClientsController.php

示例3: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $title = 'CLIENT';
     if (Input::has('cid')) {
         $id = Input::get('cid');
         $clients = Client::where('cid', $id)->paginate(10);
     } elseif (Input::has('name')) {
         $name = Input::get('name');
         $clients = Client::where('name', 'like', '%' . $name . '%')->paginate(10);
     } elseif (Input::has('contact_person')) {
         $contact_person = Input::get('contact_person');
         $clients = Client::where('contact_person', 'like', '%' . $contact_person . '%')->paginate(10);
     } elseif (Input::has('city')) {
         $city = Input::get('city');
         $clients = Client::where('city', 'like', '%' . $city . '%')->paginate(10);
     } elseif (Input::has('state')) {
         $state = Input::get('state');
         $clients = Client::where('state', 'like', '%' . $state . '%')->paginate(10);
     } else {
         $clients = Client::paginate(10);
     }
     $repository = $this->repository;
     return view('client/index', compact('title', 'clients', 'repository'));
 }
开发者ID:smartrahat,项目名称:zamzam,代码行数:29,代码来源:ClientController.php

示例4: index

 /**
  * Display a listing of clients.
  *
  * @return Response
  */
 public function index()
 {
     $clients = Client::paginate(12);
     return view('admin.index_clients')->with('title', 'View Clients')->with('clients', $clients);
 }
开发者ID:2dan-devs,项目名称:williamnavasphoto,代码行数:10,代码来源:ClientsController.php

示例5: index

 /**
  * Show the application dashboard.
  * GET: /client.
  *
  * @return Response
  */
 public function index()
 {
     $clients = Client::paginate(2);
     return view('clients.index')->with('clients', $clients);
 }
开发者ID:xchub,项目名称:web-freelancer,代码行数:11,代码来源:ClientsController.php

示例6: index

 /**
  * Display a listing of the resource.
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $clients = Client::paginate(10);
     return view('clients.index', compact('clients', $clients));
 }
开发者ID:edwardricardo,项目名称:zenska,代码行数:9,代码来源:ClientController.php


注:本文中的app\Client::paginate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。