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


PHP Event::count方法代码示例

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


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

示例1: index

 public function index()
 {
     $videoCount = Video::count();
     $memberCount = $this->userRepo->countMembers();
     $eventCount = Event::count();
     return view('admin.index', ['noOfVideos' => $videoCount, 'noOfMembers' => $memberCount, 'noOfEvents' => $eventCount]);
 }
开发者ID:arjayads,项目名称:all-star,代码行数:7,代码来源:HomeController.php

示例2: GenerateFake

 public static function GenerateFake($faker)
 {
     return ['event_id' => $faker->numberBetween($min = 1, $max = Event::count()), 'hashTag_id' => $faker->numberBetween($min = 1, $max = HashTag::count())];
 }
开发者ID:soutoner,项目名称:api-desconecta,代码行数:4,代码来源:EventHasHashTagSeeder.php

示例3: GenerateFake

 public static function GenerateFake($faker)
 {
     return ['uri' => $faker->imageUrl($width = 640, $height = 480), 'desc' => $faker->optional()->text($maxNbChars = 200), 'event_id' => $faker->numberBetween($min = 1, $max = Event::count())];
 }
开发者ID:soutoner,项目名称:api-desconecta,代码行数:4,代码来源:PhotoSeeder.php

示例4: GenerateFake

 public static function GenerateFake($faker)
 {
     return ['user_id' => $faker->numberBetween($min = 1, $max = User::count()), 'event_id' => $faker->numberBetween($min = 1, $max = Event::count()), 'geo_attended' => $faker->boolean($chanceOfGettingTrue = 50)];
 }
开发者ID:soutoner,项目名称:api-desconecta,代码行数:4,代码来源:AttendSeeder.php


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