本文整理汇总了PHP中Members::where方法的典型用法代码示例。如果您正苦于以下问题:PHP Members::where方法的具体用法?PHP Members::where怎么用?PHP Members::where使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Members
的用法示例。
在下文中一共展示了Members::where方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getName
public function getName($id)
{
$team = Members::where('user_id', '=', $id)->get();
foreach ($team as $teams) {
return $teams->name;
}
}
示例2: getAdress
public function getAdress($id)
{
$team = Members::where('user_id', '=', $id)->get();
foreach ($team as $teams) {
return $teams->address;
}
}
示例3: postEdit
public function postEdit($id)
{
$staff_id = Request::segment(5);
$fields = array('email' => Input::get('email'), 'name' => Input::get('name'), 'phone' => Input::get('phone'), 'cell' => Input::get('cell'), 'fax' => Input::get('fax'), 'address' => Input::get('address'), 'zip' => Input::get('zip'), 'country' => Input::get('country'), 'listing_quota' => Input::get('listing_quota'), 'hot_quota' => Input::get('hot_quota'));
Agency::where('agency_id', '=', $id)->update($fields);
$fields1 = array('email' => Input::get('email'));
DB::table('users')->where('id', '=', $staff_id)->update($fields1);
$fieldsreg = array('name' => Input::get('name'), 'phone' => Input::get('phone'), 'cell' => Input::get('cell'), 'fax' => Input::get('fax'), 'address' => Input::get('address'), 'zip' => Input::get('zip'), 'country' => Input::get('country'));
Members::where('user_id', '=', $staff_id)->update($fieldsreg);
$proimg = Input::file('photo');
if ($proimg) {
$fieldsimg = array('photo' => $this->ImageCrop('photo', 'photos', '200', '200', ''));
DB::table('registration')->where('user_id', '=', $staff_id)->update($fieldsimg);
}
return Redirect::to('dashboard/agencies');
}
示例4: getSendmessage
public function getSendmessage($id)
{
$records = Members::where('user_id', $id)->get();
return View::make('auth.sendmessage')->with('records', $records);
}