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


PHP Flyer::where方法代码示例

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


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

示例1: userCreatedFlyer

 protected function userCreatedFlyer(Request $request)
 {
     return Flyer::where(['zip' => $request->zip, 'street' => $request->street, 'user_id' => $this->user()->id])->exists();
 }
开发者ID:bossrabbit,项目名称:project-flyer,代码行数:4,代码来源:AuthorisesUsers.php

示例2: userCreatedFlyer

 /**
  * @param Request $request
  * @return mixed
  */
 protected function userCreatedFlyer(Request $request)
 {
     return Flyer::where(['zip' => $request->zip, 'street' => $request->street, 'user_id' => \Auth::id()])->exists();
 }
开发者ID:rrubiorr81,项目名称:flyer,代码行数:8,代码来源:AuthorizesUsers.php

示例3: authorize

 /**
  * Determine if the user is authorized to make this request.
  *
  * @return bool
  */
 public function authorize()
 {
     return Flyer::where(['zip' => $this->zip, 'street' => $this->street, 'user_id' => $this->user()->id])->exists();
 }
开发者ID:pranayaryal,项目名称:projectflyer,代码行数:9,代码来源:AddPhotoRequest.php

示例4: index

 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $flyers = Flyer::where(['user_id' => $this->user->id])->get();
     return view('flyers.index', compact('flyers'));
 }
开发者ID:emptyWang,项目名称:flyer,代码行数:10,代码来源:FlyersController.php

示例5: createdFlyer

 public function createdFlyer(Request $request)
 {
     Flyer::where(['street' => $request->street, 'zip' => $request->zip, 'user_id' => \Auth::user()->id])->exists();
 }
开发者ID:DevMaurice,项目名称:proflyer,代码行数:4,代码来源:AuthorizeUser.php

示例6: authorize

 /**
  * Determine if the user is authorized to make this request.
  *
  * @return bool
  */
 public function authorize()
 {
     return Flyer::where(['postalCode' => $this->postalCode, 'street' => $this->street, 'user_id' => $this->user()->id])->exists();
 }
开发者ID:MikeJKBird,项目名称:projectflyer,代码行数:9,代码来源:AddPhotoRequest.php

示例7: authorize

 /**
  * Determine if the user is authorized to make this request.
  *
  * @return bool
  */
 public function authorize()
 {
     $this->street = str_replace('+', ' ', $this->street);
     return Flyer::where(['zip' => $this->zip, 'street' => $this->street, 'user_id' => $this->user()->id])->exists();
 }
开发者ID:ronaldvaneede,项目名称:laracasts-projectflyer-series,代码行数:10,代码来源:AddPhotoRequest.php


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