本文整理汇总了PHP中Supplier::all方法的典型用法代码示例。如果您正苦于以下问题:PHP Supplier::all方法的具体用法?PHP Supplier::all怎么用?PHP Supplier::all使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Supplier
的用法示例。
在下文中一共展示了Supplier::all方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: edit
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
$receipt = Receipt::find($id);
$suppliers = Supplier::all()->lists('name', 'id');
$commodities = Commodity::all()->lists('name', 'id');
return View::make('receipt.edit')->with('receipt', $receipt)->with('commodities', $commodities)->with('suppliers', $suppliers);
}
示例2: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
$all = Supplier::all();
$op = array();
foreach ($all as $data) {
$op[] = array("{$data->id}", $data->supp_name, $data->contact_f, $data->email, $data->supp_mgm, "{$data->created_at}", "action");
}
return json_encode(array("data" => $op));
}
示例3: suppliers
public function suppliers()
{
$ids = DB::table('tblSuppliers')->select('strSuppID')->orderBy('updated_at', 'desc')->orderBy('strSuppID', 'desc')->take(1)->get();
$ID = $ids["0"]->strSuppID;
$newID = $this->smart($ID);
// Get all products from the database
$suppliers = Supplier::all();
return View::make('suppliers')->with('suppliers', $suppliers)->with('newID', $newID);
}
示例4: suppliers
public function suppliers()
{
// Get all products from the database
$suppliers = Supplier::all();
return View::make('suppliers')->with('suppliers', $suppliers);
}
示例5: getPackageDetailModal
/**
* getPackageDetailModal (拆包)
*/
public function getPackageDetailModal()
{
$suppliers = Supplier::all();
return View::make('admin.itemreceive.packagedetailmodal')->with('suppliers', $suppliers);
}
示例6: allSuppliers
public function allSuppliers()
{
$suppliers = Supplier::all()->toArray();
var_dump($suppliers);
}
示例7: get_ps
public function get_ps()
{
$this->data['create'] = true;
$this->data['suppliers'] = Koki::to_dropdown(Supplier::all(), 'id', 'company_name');
//var_dump($this->data['suppliers'] );
return View::make('themes.modul.' . $this->views . '.penerimaansp-jquery', $this->data);
}
示例8: index
/**
* Display a listing of suppliers
*
* @return Response
*/
public function index()
{
$suppliers = Supplier::all();
return View::make('admin.suppliers.index', compact('suppliers'));
}
示例9: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
//
$suppliers = Supplier::all();
return View::make('supplier.supplier', ['suppliers' => $suppliers]);
}
示例10:
<h3 class="modal_title pull-left">Please Make a new order. </h3>
<a href="javascript:void(0)" class=" modal-action modal-close pull-right"><i class="fa fa-times"></i></a>
<div class="clearfix"></div>
</div>
<div class="modal_body">
<div class="insert_form row">
<form action="javascript:void(0)" id="form_newOrder">
<div class="input-field col s6">
<input placeholder="Select Date" id="newOrdDate" type="text" name="newOrdDate">
<label for="cusFirstName">Date : </label>
</div>
<div class="input-field col s6">
<select class="browser-default" id="newOrderSupp" name="newOrderSupp">
<option value="" selected>Select Supplier</option>
<?php
$dataX = Supplier::all();
?>
@foreach($dataX as $dx)
<option value="{{$dx->id}}">{{$dx->supp_name}} - ( {{$dx->id}} )</option>
@endforeach
</select>
</div>
<div class="input-field col s12">
<textarea placeholder="Add Comment" id="newOrderComment" name="newOrderComment" class="materialize-textarea"></textarea>
<label for="eng_no">Comment</label>
</div>
<div class="input-field col s6">
<input placeholder="0123456789" id="newOrderAmmount" type="text" name="newOrderAmmount">
<label for="eng_no">Ammount</label>
</div>
<div class="input-field col s6">