Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| TblGoogleAdsLeadsLog | 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 — audit log for Google Ads webhook hits. |
| 10 | * |
| 11 | * Every POST to /api/webhooks/google-ads-leads/* lands here, regardless of |
| 12 | * whether it became a real quotation. See GoogleAdsWebhooks::receive. |
| 13 | */ |
| 14 | class TblGoogleAdsLeadsLog extends Model |
| 15 | { |
| 16 | use HasFactory; |
| 17 | |
| 18 | protected $table = 'tbl_google_ads_leads_log'; |
| 19 | |
| 20 | // Only created_at — `updated_at` doesn't exist on this table. |
| 21 | public $timestamps = false; |
| 22 | |
| 23 | protected $fillable = [ |
| 24 | 'form_key', |
| 25 | 'raw_payload', |
| 26 | 'is_test', |
| 27 | 'quotation_id', |
| 28 | 'error_message', |
| 29 | 'created_at', |
| 30 | ]; |
| 31 | |
| 32 | protected $casts = [ |
| 33 | 'raw_payload' => 'array', |
| 34 | 'is_test' => 'integer', |
| 35 | 'quotation_id' => 'integer', |
| 36 | ]; |
| 37 | } |