本文整理匯總了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'));
}