Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public function store() { try { $newVendor = new Vendor(); $newVendor->name = Input::get('name'); $newVendor->url = Input::get('url'); $newVendor->save(); return $newVendor->toJson(); } catch (Exception $e) { return json_encode('{"error":{"text":' . $e->getMessage() . '}}'); } }