/** * 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')); }
/** * 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')); }
/** * 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')); }