for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gewaer\Api\Controllers;
use Gewaer\Models\CompaniesCustomFields;
/**
* Class LanguagesController
*
* @package Gewaer\Api\Controllers
* @property Users $userData
*/
class CompaniesCustomFieldsController extends BaseController
{
/*
* fields we accept to create
* @var array
protected $createFields = ['custom_fields_id', 'value'];
protected $updateFields = ['custom_fields_id', 'value'];
* set objects
* @return void
public function onConstruct()
$this->model = new CompaniesCustomFields();
$this->model->companies_id = $this->userData->currentCompanyId();
$this->additionalSearchFields = [
['companies_id', ':', $this->userData->currentCompanyId()],
];
}