# CustomField Model
| DB Table Name | Inherits from BoardTerm {wp_db_prefix}_fbs_board_terms |
|---|---|
| Source File | fluent-boards-pro/app/Models/CustomField.php |
| Name Space | FluentBoardsPro\App\Models |
| Class | FluentBoardsPro\App\Models\CustomField |
# Relations
This model has the following relationships that you can use
# tasks
Access tasks associated with the CustomField.
- return
FluentCustomFields\App\Models\TaskModel Collection
# Example:
$customField = CustomField::find(1);
$tasks = $customField->tasks; // Retrieves tasks associated with this custom field
1
2
2
# board
Access board associated with the CustomField.
- return
FluentCustomFields\App\Models\BoardModel Collections
# Example:
$customField = CustomField::find(1);
$board = $customField->board; // Retrieves the board associated with this custom field
1
2
2