attributes() public method
Returns the list of all attribute names of the model.
This method could be overridden by child classes to define available attributes. Note: all attributes defined in base Active Record class should be always present in returned array. For example:
public function attributes()
{
return array_merge(
parent::attributes(),
['tags', 'status']
);
}
| public array attributes ( ) | ||
|---|---|---|
| return | array |
List of attribute names. |
Please login to continue.