diff --git a/app/Models/Lead.php b/app/Models/Lead.php index 8b84b9e..227bd38 100644 --- a/app/Models/Lead.php +++ b/app/Models/Lead.php @@ -9,6 +9,7 @@ namespace App\Models; use Carbon\Carbon; use App\Services\Passolution; use App\Models\Lead as ModelsLead; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Collection; @@ -107,6 +108,8 @@ use Illuminate\Database\Eloquent\Collection; */ class Lead extends Model { + use HasFactory; + protected $connection = 'mysql'; protected $table = 'lead'; @@ -126,16 +129,14 @@ class Lead extends Model 'travelcategory_id' => 'int', 'price' => 'float', 'pax' => 'int', - 'participant_salutation_id' => 'int' + 'participant_salutation_id' => 'int', + 'request_date' => 'datetime', + 'travelperiod_start' => 'datetime', + 'travelperiod_end' => 'datetime', + 'next_due_date' => 'datetime', + 'participant_birthdate' => 'datetime', ]; - protected $dates = [ - 'request_date', - 'travelperiod_start', - 'travelperiod_end', - 'next_due_date', - 'participant_birthdate' - ]; protected $fillable = [ 'customer_id',