tipo: modificación del cpanel y gitignore de la carpeta vendor

This commit is contained in:
2026-07-07 11:35:09 -06:00
parent a0c91dc567
commit 676ef0d506
8510 changed files with 1132803 additions and 4 deletions
+57
View File
@@ -0,0 +1,57 @@
<?php
namespace Laravel\Paddle;
use Illuminate\Database\Eloquent\Model;
/**
* @property \Laravel\Paddle\Billable $billable
*/
class Customer extends Model
{
/**
* The attributes that are not mass assignable.
*
* @var array
*/
protected $guarded = [];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'trial_ends_at' => 'datetime',
];
/**
* Get the billable model related to the customer.
*
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
*/
public function billable()
{
return $this->morphTo();
}
/**
* Determine if the Paddle model is on a "generic" trial at the model level.
*
* @return bool
*/
public function onGenericTrial()
{
return $this->trial_ends_at && $this->trial_ends_at->isFuture();
}
/**
* Determine if the Paddle model has an expired "generic" trial at the model level.
*
* @return bool
*/
public function hasExpiredGenericTrial()
{
return $this->trial_ends_at && $this->trial_ends_at->isPast();
}
}