diff --git a/application/controllers/Admins.php b/application/controllers/Admins.php index 95ebb951..3a062831 100644 --- a/application/controllers/Admins.php +++ b/application/controllers/Admins.php @@ -109,9 +109,9 @@ class Admins extends EA_Controller { } /** - * Create an admin. + * Store a new admin. */ - public function create() + public function store() { try { diff --git a/application/controllers/Appointments.php b/application/controllers/Appointments.php index f9720839..51901364 100644 --- a/application/controllers/Appointments.php +++ b/application/controllers/Appointments.php @@ -80,9 +80,9 @@ class Appointments extends EA_Controller { } /** - * Create a appointment. + * Store a new appointment. */ - public function create() + public function store() { try { diff --git a/application/controllers/Customers.php b/application/controllers/Customers.php index bc95b337..a57c123c 100644 --- a/application/controllers/Customers.php +++ b/application/controllers/Customers.php @@ -166,9 +166,9 @@ class Customers extends EA_Controller { } /** - * Create a customer. + * Store a new customer. */ - public function create() + public function store() { try { diff --git a/application/controllers/Providers.php b/application/controllers/Providers.php index 508fa5d5..418d6f88 100644 --- a/application/controllers/Providers.php +++ b/application/controllers/Providers.php @@ -123,9 +123,9 @@ class Providers extends EA_Controller { } /** - * Create a provider. + * Store a new provider. */ - public function create() + public function store() { try { diff --git a/application/controllers/Secretaries.php b/application/controllers/Secretaries.php index 043a984a..8737e063 100644 --- a/application/controllers/Secretaries.php +++ b/application/controllers/Secretaries.php @@ -123,9 +123,9 @@ class Secretaries extends EA_Controller { } /** - * Create a secretary. + * Store a new secretary. */ - public function create() + public function store() { try { diff --git a/application/controllers/Service_categories.php b/application/controllers/Service_categories.php index dc8b0a65..cee123ae 100644 --- a/application/controllers/Service_categories.php +++ b/application/controllers/Service_categories.php @@ -107,9 +107,9 @@ class Service_categories extends EA_Controller { } /** - * Create a service-category. + * Store a new service-category. */ - public function create() + public function store() { try { diff --git a/application/controllers/Services.php b/application/controllers/Services.php index f3aaa385..755961f8 100644 --- a/application/controllers/Services.php +++ b/application/controllers/Services.php @@ -108,9 +108,9 @@ class Services extends EA_Controller { } /** - * Create a service. + * Store a new service. */ - public function create() + public function store() { try { diff --git a/application/controllers/Unavailabilities.php b/application/controllers/Unavailabilities.php index 2c0b346d..bdf3ffca 100644 --- a/application/controllers/Unavailabilities.php +++ b/application/controllers/Unavailabilities.php @@ -65,9 +65,9 @@ class Unavailabilities extends EA_Controller { } /** - * Create a unavailability. + * Store a new unavailability. */ - public function create() + public function store() { try { diff --git a/application/controllers/Webhooks.php b/application/controllers/Webhooks.php index e6ffc614..0dd7ea79 100644 --- a/application/controllers/Webhooks.php +++ b/application/controllers/Webhooks.php @@ -124,9 +124,9 @@ class Webhooks extends EA_Controller { } /** - * Create a webhook. + * Store a new webhook. */ - public function create() + public function store() { try { diff --git a/application/controllers/api/v1/Admins_api_v1.php b/application/controllers/api/v1/Admins_api_v1.php index b9181feb..d4c08cfe 100644 --- a/application/controllers/api/v1/Admins_api_v1.php +++ b/application/controllers/api/v1/Admins_api_v1.php @@ -122,7 +122,7 @@ class Admins_api_v1 extends EA_Controller { } /** - * Create an admin. + * Store a new admin. */ public function store() { diff --git a/application/controllers/api/v1/Appointments_api_v1.php b/application/controllers/api/v1/Appointments_api_v1.php index e167ddad..669f7789 100644 --- a/application/controllers/api/v1/Appointments_api_v1.php +++ b/application/controllers/api/v1/Appointments_api_v1.php @@ -186,7 +186,7 @@ class Appointments_api_v1 extends EA_Controller { } /** - * Create an appointment. + * Store a new appointment. */ public function store() { diff --git a/application/controllers/api/v1/Customers_api_v1.php b/application/controllers/api/v1/Customers_api_v1.php index e358dc75..f98a10c4 100644 --- a/application/controllers/api/v1/Customers_api_v1.php +++ b/application/controllers/api/v1/Customers_api_v1.php @@ -113,7 +113,7 @@ class Customers_api_v1 extends EA_Controller { } /** - * Create a customer. + * Store a new customer. */ public function store() { diff --git a/application/controllers/api/v1/Providers_api_v1.php b/application/controllers/api/v1/Providers_api_v1.php index 97875f81..61928f22 100644 --- a/application/controllers/api/v1/Providers_api_v1.php +++ b/application/controllers/api/v1/Providers_api_v1.php @@ -120,7 +120,7 @@ class Providers_api_v1 extends EA_Controller { } /** - * Create a provider. + * Store a new provider. */ public function store() { diff --git a/application/controllers/api/v1/Secretaries_api_v1.php b/application/controllers/api/v1/Secretaries_api_v1.php index 25cc085b..6c50e168 100644 --- a/application/controllers/api/v1/Secretaries_api_v1.php +++ b/application/controllers/api/v1/Secretaries_api_v1.php @@ -113,7 +113,7 @@ class Secretaries_api_v1 extends EA_Controller { } /** - * Create a secretary. + * Store a new secretary. */ public function store() { diff --git a/application/controllers/api/v1/Service_categories_api_v1.php b/application/controllers/api/v1/Service_categories_api_v1.php index bf298e69..0ba60876 100644 --- a/application/controllers/api/v1/Service_categories_api_v1.php +++ b/application/controllers/api/v1/Service_categories_api_v1.php @@ -120,7 +120,7 @@ class Service_categories_api_v1 extends EA_Controller { } /** - * Create a service-category. + * Store a new service-category. */ public function store() { diff --git a/application/controllers/api/v1/Services_api_v1.php b/application/controllers/api/v1/Services_api_v1.php index 80cd4442..96c12f62 100644 --- a/application/controllers/api/v1/Services_api_v1.php +++ b/application/controllers/api/v1/Services_api_v1.php @@ -120,7 +120,7 @@ class Services_api_v1 extends EA_Controller { } /** - * Create an service. + * Store a new service. */ public function store() { diff --git a/application/controllers/api/v1/Unavailabilities_api_v1.php b/application/controllers/api/v1/Unavailabilities_api_v1.php index eff24060..43bdbee1 100644 --- a/application/controllers/api/v1/Unavailabilities_api_v1.php +++ b/application/controllers/api/v1/Unavailabilities_api_v1.php @@ -118,7 +118,7 @@ class Unavailabilities_api_v1 extends EA_Controller { } /** - * Create an unavailability. + * Store a new unavailability. */ public function store() { diff --git a/application/controllers/api/v1/Webhooks_api_v1.php b/application/controllers/api/v1/Webhooks_api_v1.php index 0274e585..338e8783 100644 --- a/application/controllers/api/v1/Webhooks_api_v1.php +++ b/application/controllers/api/v1/Webhooks_api_v1.php @@ -120,7 +120,7 @@ class Webhooks_api_v1 extends EA_Controller { } /** - * Create a webhook. + * Store a new webhook. */ public function store() { diff --git a/assets/js/http/admins_http_client.js b/assets/js/http/admins_http_client.js index b4a63dbb..c6d7b26a 100644 --- a/assets/js/http/admins_http_client.js +++ b/assets/js/http/admins_http_client.js @@ -23,7 +23,7 @@ App.Http.Admins = (function () { * @return {Object} */ function save(admin) { - return admin.id ? update(admin) : create(admin); + return admin.id ? update(admin) : store(admin); } /** @@ -33,8 +33,8 @@ App.Http.Admins = (function () { * * @return {Object} */ - function create(admin) { - const url = App.Utils.Url.siteUrl('admins/create'); + function store(admin) { + const url = App.Utils.Url.siteUrl('admins/store'); const data = { csrf_token: vars('csrf_token'), @@ -124,7 +124,7 @@ App.Http.Admins = (function () { return { save, - create, + store, update, destroy, search, diff --git a/assets/js/http/appointments_http_client.js b/assets/js/http/appointments_http_client.js index 4470c08d..6f24ee0f 100644 --- a/assets/js/http/appointments_http_client.js +++ b/assets/js/http/appointments_http_client.js @@ -23,7 +23,7 @@ App.Http.Appointments = (function () { * @return {Object} */ function save(appointment) { - return appointment.id ? update(appointment) : create(appointment); + return appointment.id ? update(appointment) : store(appointment); } /** @@ -33,8 +33,8 @@ App.Http.Appointments = (function () { * * @return {Object} */ - function create(appointment) { - const url = App.Utils.Url.siteUrl('appointments/create'); + function store(appointment) { + const url = App.Utils.Url.siteUrl('appointments/store'); const data = { csrf_token: vars('csrf_token'), @@ -124,7 +124,7 @@ App.Http.Appointments = (function () { return { save, - create, + store, update, destroy, search, diff --git a/assets/js/http/customers_http_client.js b/assets/js/http/customers_http_client.js index 1334f741..d3889fa0 100644 --- a/assets/js/http/customers_http_client.js +++ b/assets/js/http/customers_http_client.js @@ -23,7 +23,7 @@ App.Http.Customers = (function () { * @return {Object} */ function save(customer) { - return customer.id ? update(customer) : create(customer); + return customer.id ? update(customer) : store(customer); } /** @@ -33,8 +33,8 @@ App.Http.Customers = (function () { * * @return {Object} */ - function create(customer) { - const url = App.Utils.Url.siteUrl('customers/create'); + function store(customer) { + const url = App.Utils.Url.siteUrl('customers/store'); const data = { csrf_token: vars('csrf_token'), @@ -124,7 +124,7 @@ App.Http.Customers = (function () { return { save, - create, + store, update, destroy, search, diff --git a/assets/js/http/providers_http_client.js b/assets/js/http/providers_http_client.js index e6fd3163..042548a4 100644 --- a/assets/js/http/providers_http_client.js +++ b/assets/js/http/providers_http_client.js @@ -23,7 +23,7 @@ App.Http.Providers = (function () { * @return {Object} */ function save(provider) { - return provider.id ? update(provider) : create(provider); + return provider.id ? update(provider) : store(provider); } /** @@ -33,8 +33,8 @@ App.Http.Providers = (function () { * * @return {Object} */ - function create(provider) { - const url = App.Utils.Url.siteUrl('providers/create'); + function store(provider) { + const url = App.Utils.Url.siteUrl('providers/store'); const data = { csrf_token: vars('csrf_token'), @@ -124,7 +124,7 @@ App.Http.Providers = (function () { return { save, - create, + store, update, destroy, search, diff --git a/assets/js/http/secretaries_http_client.js b/assets/js/http/secretaries_http_client.js index 265b54fa..201dde5e 100644 --- a/assets/js/http/secretaries_http_client.js +++ b/assets/js/http/secretaries_http_client.js @@ -23,7 +23,7 @@ App.Http.Secretaries = (function () { * @return {Object} */ function save(secretary) { - return secretary.id ? update(secretary) : create(secretary); + return secretary.id ? update(secretary) : store(secretary); } /** @@ -33,8 +33,8 @@ App.Http.Secretaries = (function () { * * @return {Object} */ - function create(secretary) { - const url = App.Utils.Url.siteUrl('secretaries/create'); + function store(secretary) { + const url = App.Utils.Url.siteUrl('secretaries/store'); const data = { csrf_token: vars('csrf_token'), @@ -124,7 +124,7 @@ App.Http.Secretaries = (function () { return { save, - create, + store, update, destroy, search, diff --git a/assets/js/http/service_categories_http_client.js b/assets/js/http/service_categories_http_client.js index f2953c4d..77918d08 100644 --- a/assets/js/http/service_categories_http_client.js +++ b/assets/js/http/service_categories_http_client.js @@ -23,7 +23,7 @@ App.Http.ServiceCategories = (function () { * @return {Object} */ function save(serviceCategory) { - return serviceCategory.id ? update(serviceCategory) : create(serviceCategory); + return serviceCategory.id ? update(serviceCategory) : store(serviceCategory); } /** @@ -33,8 +33,8 @@ App.Http.ServiceCategories = (function () { * * @return {Object} */ - function create(serviceCategory) { - const url = App.Utils.Url.siteUrl('service_categories/create'); + function store(serviceCategory) { + const url = App.Utils.Url.siteUrl('service_categories/store'); const data = { csrf_token: vars('csrf_token'), @@ -124,7 +124,7 @@ App.Http.ServiceCategories = (function () { return { save, - create, + store, update, destroy, search, diff --git a/assets/js/http/services_http_client.js b/assets/js/http/services_http_client.js index 772d3352..1b5269a8 100644 --- a/assets/js/http/services_http_client.js +++ b/assets/js/http/services_http_client.js @@ -23,7 +23,7 @@ App.Http.Services = (function () { * @return {Object} */ function save(service) { - return service.id ? update(service) : create(service); + return service.id ? update(service) : store(service); } /** @@ -33,8 +33,8 @@ App.Http.Services = (function () { * * @return {Object} */ - function create(service) { - const url = App.Utils.Url.siteUrl('services/create'); + function store(service) { + const url = App.Utils.Url.siteUrl('services/store'); const data = { csrf_token: vars('csrf_token'), @@ -124,7 +124,7 @@ App.Http.Services = (function () { return { save, - create, + store, update, destroy, search, diff --git a/assets/js/http/unavailabilities_http_client.js b/assets/js/http/unavailabilities_http_client.js index 0f105bf4..d93fcdc4 100644 --- a/assets/js/http/unavailabilities_http_client.js +++ b/assets/js/http/unavailabilities_http_client.js @@ -23,7 +23,7 @@ App.Http.Unavailabilities = (function () { * @return {Object} */ function save(unavailability) { - return unavailability.id ? update(unavailability) : create(unavailability); + return unavailability.id ? update(unavailability) : store(unavailability); } /** @@ -33,8 +33,8 @@ App.Http.Unavailabilities = (function () { * * @return {Object} */ - function create(unavailability) { - const url = App.Utils.Url.siteUrl('unavailabilities/create'); + function store(unavailability) { + const url = App.Utils.Url.siteUrl('unavailabilities/store'); const data = { csrf_token: vars('csrf_token'), @@ -124,7 +124,7 @@ App.Http.Unavailabilities = (function () { return { save, - create, + store, update, destroy, search, diff --git a/assets/js/http/webhooks_http_client.js b/assets/js/http/webhooks_http_client.js index 56364b27..ff43a21b 100644 --- a/assets/js/http/webhooks_http_client.js +++ b/assets/js/http/webhooks_http_client.js @@ -23,7 +23,7 @@ App.Http.Webhooks = (function () { * @return {Object} */ function save(webhook) { - return webhook.id ? update(webhook) : create(webhook); + return webhook.id ? update(webhook) : store(webhook); } /** @@ -33,8 +33,8 @@ App.Http.Webhooks = (function () { * * @return {Object} */ - function create(webhook) { - const url = App.Utils.Url.siteUrl('webhooks/create'); + function store(webhook) { + const url = App.Utils.Url.siteUrl('webhooks/store'); const data = { csrf_token: vars('csrf_token'), @@ -124,7 +124,7 @@ App.Http.Webhooks = (function () { return { save, - create, + store, update, destroy, search,