BusinessRelatedPlaces
extends Model
in package
uses
HasFactory
BusinessRelatedPlaces Model for managing related places and business connections.
This model is used to create and manage business-related places data including Foursquare place connections, category classifications, and business relationships. It provides a structured interface for storing and retrieving business-specific related place information such as Foursquare place identifiers, category classifications, place names, and business relationship mappings. The model supports comprehensive related places management including Foursquare integration, category organization, and business relationship tracking for enhanced airport guide platform functionality and business network discovery.
Table of Contents
Properties
- $business_id : int
- $categories : string
- $created_at : string
- $fsq_id : string
- $id : int
- $name : string
- $updated_at : string
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable for business related places records.
Methods
- __construct() : void
- Initialize the BusinessRelatedPlaces model with the correct database table configuration.
Properties
$business_id
public
int
$business_id
The foreign key reference to the business
$categories
public
string
$categories
The category classifications for the related place
$created_at
public
string
$created_at
Timestamp when the record was created
$fsq_id
public
string
$fsq_id
The Foursquare place identifier
$id
public
int
$id
The unique identifier for the business related places record
$name
public
string
$name
The name of the related place
$updated_at
public
string
$updated_at
Timestamp when the record was last updated
$fillable
The attributes that are mass assignable for business related places records.
protected
array<string|int, mixed>
$fillable
= ['id', 'business_id', 'fsq_id', 'categories', 'name', 'created_at', 'updated_at']
This property defines the fields that can be mass-assigned when creating or updating BusinessRelatedPlaces records. It includes all essential business related places fields such as identification, business relationships, Foursquare place identifiers, category classifications, place names, and metadata timestamps. The fillable attributes ensure data integrity while allowing efficient bulk operations for business related places management and network relationship tracking across different categories and Foursquare place connections.
Methods
__construct()
Initialize the BusinessRelatedPlaces model with the correct database table configuration.
public
__construct() : void
This function is used to create a properly configured BusinessRelatedPlaces model instance by setting the database table name from the configuration constants. It ensures that the model interacts with the correct database table for business related places data information, which is essential for proper related places storage and retrieval operations. The constructor dynamically assigns the table name based on the BUSINESS_RELATED_PLACES configuration constant to maintain flexibility and configuration-driven behavior for business related places data management.