Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| TblGoogleAdsForms | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Models; |
| 4 | |
| 5 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
| 6 | use Illuminate\Database\Eloquent\Model; |
| 7 | |
| 8 | /** |
| 9 | * FIRE-XXXX — per-form config for the Google Ads lead webhook. |
| 10 | * |
| 11 | * One row per region/form. `form_key` is the path segment of the webhook |
| 12 | * URL AND the primary key; `google_key` is the shared secret Google sends |
| 13 | * in every POST body. See GoogleAdsWebhooks::receive for verification. |
| 14 | */ |
| 15 | class TblGoogleAdsForms extends Model |
| 16 | { |
| 17 | use HasFactory; |
| 18 | |
| 19 | protected $table = 'tbl_google_ads_forms'; |
| 20 | |
| 21 | protected $primaryKey = 'form_key'; |
| 22 | |
| 23 | public $incrementing = false; |
| 24 | |
| 25 | protected $keyType = 'string'; |
| 26 | |
| 27 | public $timestamps = true; |
| 28 | |
| 29 | protected $fillable = [ |
| 30 | 'form_key', |
| 31 | 'google_key', |
| 32 | 'company_id', |
| 33 | 'default_source_id', |
| 34 | 'default_commercial', |
| 35 | 'status_id', |
| 36 | 'active', |
| 37 | ]; |
| 38 | |
| 39 | protected $casts = [ |
| 40 | 'company_id' => 'integer', |
| 41 | 'default_source_id' => 'integer', |
| 42 | 'status_id' => 'integer', |
| 43 | 'active' => 'integer', |
| 44 | ]; |
| 45 | } |