Changeset View
Changeset View
Standalone View
Standalone View
src/app/Plan.php
<?php | <?php | ||||
namespace App; | namespace App; | ||||
use App\Traits\UuidStrKeyTrait; | |||||
use Illuminate\Database\Eloquent\Model; | use Illuminate\Database\Eloquent\Model; | ||||
use Spatie\Translatable\HasTranslations; | use Spatie\Translatable\HasTranslations; | ||||
/** | /** | ||||
* The eloquent definition of a Plan. | * The eloquent definition of a Plan. | ||||
* | * | ||||
* A Plan is a grouping of packages, such as a "Family Plan". | * A Plan is a grouping of packages, such as a "Family Plan". | ||||
* | * | ||||
Show All 9 Lines | |||||
* @property datetime $promo_from | * @property datetime $promo_from | ||||
* @property datetime $promo_to | * @property datetime $promo_to | ||||
* @property ?int $tenant_id | * @property ?int $tenant_id | ||||
* @property string $title | * @property string $title | ||||
*/ | */ | ||||
class Plan extends Model | class Plan extends Model | ||||
{ | { | ||||
use HasTranslations; | use HasTranslations; | ||||
use UuidStrKeyTrait; | |||||
public $incrementing = false; | |||||
protected $keyType = 'string'; | |||||
public $timestamps = false; | public $timestamps = false; | ||||
protected $fillable = [ | protected $fillable = [ | ||||
'title', | 'title', | ||||
'name', | 'name', | ||||
'description', | 'description', | ||||
// a start and end datetime for this promotion | // a start and end datetime for this promotion | ||||
'promo_from', | 'promo_from', | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |