Skip to content

Creative PRO ​

A marketing creative asset (banner, image, or text) managed in FluentAffiliate Pro.

Table: fa_creatives
Class: FluentAffiliate\\App\\Models\\Creative.php

Columns ​

ColumnTypeNullableDefaultDescription
idBIGINT(20)NO—Primary key, auto-increment.
nameVARCHAR(255)NO—Creative asset name.
descriptionTEXTYES—Free-text description.
typeVARCHAR(100)NO—Creative type — image, text, html, banner.
imageTEXTYES—URL of the creative image asset.
textTEXTYES—Text content for text-type creatives.
urlTEXTYES—Destination URL linked from the creative.
privacyVARCHAR(100)YESpublicVisibility — public or private.
statusVARCHAR(100)YESactiveRecord status.
affiliate_idsJSONYES—JSON array of affiliate IDs this creative is restricted to.
group_idsJSONYES—JSON array of group IDs this creative is restricted to.
metaLONGTEXTYES—Additional metadata for the creative.
created_atTIMESTAMPYES—Timestamp when the record was created.
updated_atTIMESTAMPYES—Timestamp when the record was last updated.

Query Scopes ​

ScopeDescription
ofStatus($status)Filter by status.
ofType($type)Filter by creative type.
publicCreatives()Restrict to publicly visible creatives.

Usage Example ​

php
use FluentAffiliatePro\App\Models\Creative;

$banners = Creative::ofStatus('active')
    ->ofType('image')
    ->publicCreatives()
    ->get();

FluentAffiliate developer documentation