本文整理汇总了PHP中App\Repositories\UserRepository::getNumber方法的典型用法代码示例。如果您正苦于以下问题:PHP UserRepository::getNumber方法的具体用法?PHP UserRepository::getNumber怎么用?PHP UserRepository::getNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类App\Repositories\UserRepository
的用法示例。
在下文中一共展示了UserRepository::getNumber方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: admin
/**
* Show the admin panel.
*
* @param App\Repositories\ContactRepository $contact_gestion
* @param App\Repositories\BlogRepository $blog_gestion
* @param App\Repositories\CommentRepository $comment_gestion
* @return Response
*/
public function admin(ContactRepository $contact_gestion, BlogRepository $blog_gestion, CommentRepository $comment_gestion)
{
$nbrMessages = $contact_gestion->getNumber();
$nbrUsers = $this->user_gestion->getNumber();
$nbrPosts = $blog_gestion->getNumber();
$nbrComments = $comment_gestion->getNumber();
return view('back.index', compact('nbrMessages', 'nbrUsers', 'nbrPosts', 'nbrComments'));
}
示例2: filemanager
/**
* Show the media panel.
*
* @return Response
*/
public function filemanager(ContactRepository $contact_gestion, BlogRepository $blog_gestion, CommentRepository $comment_gestion)
{
$url = config('medias.url');
$nbrMessages = $contact_gestion->getNumber();
$nbrUsers = $this->user_gestion->getNumber();
$nbrPosts = $blog_gestion->getNumber();
$nbrComments = $comment_gestion->getNumber();
return view('back.filemanager', compact('url', 'nbrMessages', 'nbrUsers', 'nbrPosts', 'nbrComments'));
}
示例3: admin
/**
* Show the admin panel.
*
* @param App\Repositories\ContactRepository $contact_gestion
* @param App\Repositories\BlogRepository $blog_gestion
* @param App\Repositories\CommentRepository $comment_gestion
* @return Response
*/
public function admin(ContactRepository $contact_gestion, BlogRepository $blog_gestion, CommentRepository $comment_gestion)
{
$nbrMessages = $contact_gestion->getNumber();
$nbrUsers = $this->user_gestion->getNumber();
$nbrPosts = $blog_gestion->getNumber();
$nbrComments = $comment_gestion->getNumber();
$tasklistall = Tasklist::all();
Session::put('tasklisttkey', $tasklistall);
$taskcount = Tasklist::count();
Session::put('taskcountkey', $taskcount);
return view('back.index', compact('nbrMessages', 'nbrUsers', 'nbrPosts', 'nbrComments', 'taskcountkey', 'tasklisttkey'));
}