Esempio n. 1
0
 public function createContact(Request $request)
 {
     $session = $request->get('session');
     $cusid = $request->get('cusId');
     $name = $request->get("contactname");
     $email = $request->get("contactemail");
     $contactno = $request->get("contacttelno");
     $contact = new Contacts();
     $contact->cusId = $cusid;
     $contact->name = $name;
     $contact->email = $email;
     $contact->contactNo = $contactno;
     $contact->save();
     return Contacts::all()->toJson();
 }