本文整理汇总了PHP中BaseController::httpExist方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseController::httpExist方法的具体用法?PHP BaseController::httpExist怎么用?PHP BaseController::httpExist使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseController
的用法示例。
在下文中一共展示了BaseController::httpExist方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: store
/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function store()
{
if ($this->create_validation->fails()) {
return BaseController::httpError($this->create_validation);
} elseif ($this->friend_check->missingUser()) {
return BaseController::httpNotFound();
} elseif ($this->friend_check->exist()) {
return BaseController::httpExist();
} else {
$this->friend_gestion->store();
return BaseController::httpOk();
}
}
示例2: store
public function store()
{
//dd($this->follow_check->missing());
if ($this->create_validation->fails()) {
return BaseController::httpError($this->create_validation);
} elseif ($this->follow_check->missingUser()) {
return BaseController::httpNotfound();
} elseif (!$this->follow_check->missing()) {
return BaseController::httpExist();
} else {
$this->follow_gestion->store();
return BaseController::httpOk();
}
}
示例3: dislike
public function dislike()
{
if ($this->create_validation->fails()) {
return BaseController::httpError($this->create_validation);
} else {
if ($this->vote_check->badVote()) {
return BaseController::httpNotFound();
} elseif (!$this->vote_check->missingVote()) {
return BaseController::httpExist();
} else {
$this->vote_gestion->dislike();
return BaseController::httpOk();
}
}
}