本文整理汇总了PHP中app\User::name方法的典型用法代码示例。如果您正苦于以下问题:PHP User::name方法的具体用法?PHP User::name怎么用?PHP User::name使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\User
的用法示例。
在下文中一共展示了User::name方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: filterAndPaginate
public static function filterAndPaginate($name, $type)
{
return User::name($name)->type($type)->orderBy('id', 'DESC')->paginate();
}
示例2: compose
public function compose($view)
{
$view->users = User::name(Input::get('name'))->paginate(5);
}
示例3: index
/**
* Display a listing of the resource.
*
* @param Request $request
* @return Response
*/
public function index(Request $request)
{
$users = User::name($request->get('name'))->role($request->get('role'))->orderBy('created_at', 'DESC')->paginate();
return view('admin.users.index')->with('users', $users)->with('title', trans('titles.list_users'));
}
示例4: userSearch
public function userSearch()
{
$q = Input::get('user');
$users = User::name($q)->get();
return view('profile.searchUser', compact('users'));
}
示例5: buscarUser
public function buscarUser(Request $request)
{
$users = User::name($request->get('name'))->get();
return $users;
}
示例6: index
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index(Request $request)
{
$users = User::name($request->name)->orderBy('id', 'ASC')->paginate(10);
//$users = User::paginate(10);
return view('admin.users.index', compact('users'));
}
示例7: filter
public static function filter($name, $role, $cedula)
{
return User::name($name)->role($role)->cedula($cedula)->orderBy('created_at', 'DESC')->paginate(3);
}
示例8: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index(Request $request)
{
$users = User::name($request->get('name'))->paginate();
return view('admin.users.index', compact('users'));
}
示例9: filterAndPaginate
public static function filterAndPaginate($name)
{
return User::name($name)->orderBy('name', 'ASC')->paginate();
}