Skip to content

PrimaryHelper

App\Helpers\PrimaryHelper

Get Data Model

php
PrimaryHelper::fresnsModelByFsid($modelName, $fsid);

PrimaryHelper::fresnsModelById($modelName, $id);
Parameter NameTypeRequiredDescription
modelNameStringrequiredModel name
fsidNumber / StringrequiredField value, e.g. aid value

Get Primary ID

php
PrimaryHelper::fresnsPrimaryId($type, $fsid);
Parameter NameTypeRequiredDescription
typeStringrequiredType
fsidStringoptionalfsid
For example, the aid value

Released under the Apache-2.0 License