diff --git a/app/Models/Customer.php b/app/Models/Customer.php index 94e618e..436b3ee 100644 --- a/app/Models/Customer.php +++ b/app/Models/Customer.php @@ -9,6 +9,7 @@ namespace App\Models; use App\Models\Sym\TravelCountry; use Carbon\Carbon; use Illuminate\Database\Eloquent\Collection; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** @@ -83,6 +84,8 @@ use Illuminate\Database\Eloquent\Model; */ class Customer extends Model { + use HasFactory; + protected $connection = 'mysql'; protected $table = 'customer'; @@ -90,13 +93,12 @@ class Customer extends Model protected $casts = [ 'salutation_id' => 'int', 'credit_card_type_id' => 'int', - 'country_id' => 'int' - ]; + 'country_id' => 'int', + 'birthdate' => 'datetime', + 'credit_card_expiration_date' => 'datetime', + ]; - protected $dates = [ - 'birthdate', - 'credit_card_expiration_date' - ]; + protected $fillable = [ 'salutation_id',