|
|
@@ -14,6 +14,7 @@ use RuntimeException;
|
|
|
* @property int $customer_id
|
|
|
* @property int $address_id
|
|
|
* @property string $name
|
|
|
+ * @property string $nickname
|
|
|
* @property string $phone
|
|
|
* @property string $fax
|
|
|
* @property string $email
|
|
|
@@ -28,7 +29,7 @@ class Location extends Model {
|
|
|
protected static $idField = "id";
|
|
|
protected static $fillableFields = [
|
|
|
"customer_id", "address_id",
|
|
|
- "name", "phone", "fax", "email",
|
|
|
+ "name", "nickname", "phone", "fax", "email",
|
|
|
"contact_name", "contact_phone", "contact_email",
|
|
|
"dts_created", "dts_updated", "dts_deleted"
|
|
|
];
|
|
|
@@ -54,8 +55,8 @@ class Location extends Model {
|
|
|
|
|
|
$location->customer_id = $customer->id;
|
|
|
$location->name = $request->string("name");
|
|
|
+ $location->nickname = $request->string("nickname");
|
|
|
$location->phone = $request->string("phone");
|
|
|
- $location->fax = $request->string("fax");
|
|
|
$location->email = $request->email("email");
|
|
|
|
|
|
$location->contact_name = $request->string("contact_name");
|