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


PHP Bank::find方法代码示例

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


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

示例1: edit

 /**
  * Show the form for editing the specified branch.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $bank = Bank::find($id);
     return View::make('banks.edit', compact('bank'));
 }
开发者ID:kenkode,项目名称:xaraerp,代码行数:11,代码来源:BanksController.php

示例2: function

});
Route::get('leaveReports/selectApplicationPeriod', 'ReportsController@appperiod');
Route::post('leaveReports/leaveapplications', 'ReportsController@leaveapplications');
Route::get('leaveReports/selectApprovedPeriod', 'ReportsController@approvedperiod');
Route::post('leaveReports/approvedleaves', 'ReportsController@approvedleaves');
Route::get('leaveReports/selectRejectedPeriod', 'ReportsController@rejectedperiod');
Route::post('leaveReports/rejectedleaves', 'ReportsController@rejectedleaves');
Route::get('leaveReports/selectLeave', 'ReportsController@balanceselect');
Route::post('leaveReports/leaveBalances', 'ReportsController@leavebalances');
Route::get('leaveReports/selectLeaveType', 'ReportsController@leaveselect');
Route::post('leaveReports/Employeesonleave', 'ReportsController@employeesleave');
Route::get('leaveReports/selectEmployee', 'ReportsController@employeeselect');
Route::post('leaveReports/IndividualEmployeeLeave', 'ReportsController@individualleave');
Route::get('api/dropdown', function () {
    $id = Input::get('option');
    $bbranch = Bank::find($id)->bankbranch;
    return $bbranch->lists('bank_branch_name', 'id');
});
Route::get('empedit/{id}', function ($id) {
    $employee = Employee::find($id);
    $branches = Branch::all();
    $departments = Department::all();
    $jgroups = JGroup::all();
    $etypes = EType::all();
    $banks = Bank::all();
    $bbranches = BBranch::all();
    return View::make('employees.cssedit', compact('branches', 'departments', 'etypes', 'jgroups', 'banks', 'bbranches', 'employee'));
});
Route::get('css/payslips', function () {
    $employeeid = DB::table('employee')->where('personal_file_number', '=', Confide::user()->username)->pluck('id');
    $employee = Employee::findorfail($employeeid);
开发者ID:kenkode,项目名称:xpose,代码行数:31,代码来源:routes.php

示例3: destroy

 /**
  * Remove the specified resource from storage.
  * DELETE /banks/{id}
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($companies, $id)
 {
     $bank = Bank::find($id);
     $bank->delete();
 }
开发者ID:hilmysyarif,项目名称:erp,代码行数:12,代码来源:BanksController.php

示例4: show

 public function show($debtor_no)
 {
     //return $debtor_no;
     $debtor = DB::table('debtors')->where('no', '=', $debtor_no)->first();
     $company = Company::find($debtor->company_id);
     $contact = Contact::find($company->contact_id);
     $billing_company = Company::find($debtor->billing_company_id);
     $billing_contact = Contact::find($billing_company->contact_id);
     $account = Account::find($debtor->account_id);
     $bank = Bank::find($account->bank_id);
     $group = DebtorsGroup::find($debtor->account_id);
     return View::make('debtors.show')->with('company', $company)->with('contact', $contact)->with('billing_company', $billing_company)->with('billing_contact', $billing_contact)->with('account', $account)->with('bank', $bank)->with('legal', $debtor->legal)->with('country', $company->country)->with('billing_country', $billing_company->country)->with('group', $group);
 }
开发者ID:BQumobile,项目名称:simple-invoicing-system,代码行数:13,代码来源:DebtorsController.php


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