本文整理匯總了PHP中Role::getRolesOrdered方法的典型用法代碼示例。如果您正苦於以下問題:PHP Role::getRolesOrdered方法的具體用法?PHP Role::getRolesOrdered怎麽用?PHP Role::getRolesOrdered使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Role
的用法示例。
在下文中一共展示了Role::getRolesOrdered方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: listUserView
public function listUserView($view)
{
$users = User::getUserOrdered();
$roles = Role::getRolesOrdered();
$this->layout->title = trans('messages.User listings');
$this->layout->main = View::make($view)->nest('content', 'users.list', compact('users', 'roles'));
}
示例2: listAlbums
public function listAlbums()
{
$albums = Album::getAlbumsOrdered();
$users = User::all();
$roles = Role::getRolesOrdered();
$this->layout->title = trans('messages.Album listings');
$this->layout->main = View::make('users.dashboard')->nest('content', 'albums.list', compact('albums', 'users', 'roles'));
}
示例3: listRole
public function listRole()
{
$roles = Role::getRolesOrdered();
$this->layout->title = trans('messages.Role listings');
$this->layout->main = View::make('admin.dashboard')->nest('content', 'roles.list', compact('roles'));
}