Ejemplo n.º 1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     //
     $customers = Customer::lists('name', 'id');
     //$customers = Customer::where('id', $feed->first()->customer_id)->lists('name','id');
     return view('feeds.create', compact('customers'));
 }
Ejemplo n.º 2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $customers = Customer::lists('CUSTNAME', 'CUSTCODE');
     return view('frontend.parts.create', compact('customers'));
 }
Ejemplo n.º 3
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function edit($id)
 {
     $contact = Contact::findOrFail($id);
     $customers = Customer::lists('CUSTNAME', 'CUSTCODE');
     return view('frontend.contacts.edit', compact('contact', 'customers'));
 }