Changeset View
Changeset View
Standalone View
Standalone View
src/app/Package.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 Package. | * The eloquent definition of a Package. | ||||
* | * | ||||
* A package is a set of SKUs that a user can select, so that instead of; | * A package is a set of SKUs that a user can select, so that instead of; | ||||
* | * | ||||
Show All 14 Lines | |||||
* @property string $id | * @property string $id | ||||
* @property string $name | * @property string $name | ||||
* @property ?int $tenant_id | * @property ?int $tenant_id | ||||
* @property string $title | * @property string $title | ||||
*/ | */ | ||||
class Package extends Model | class Package extends Model | ||||
{ | { | ||||
use HasTranslations; | use HasTranslations; | ||||
use UuidStrKeyTrait; | |||||
public $incrementing = false; | |||||
protected $keyType = 'string'; | |||||
public $timestamps = false; | public $timestamps = false; | ||||
protected $fillable = [ | protected $fillable = [ | ||||
'description', | 'description', | ||||
'discount_rate', | 'discount_rate', | ||||
'name', | 'name', | ||||
'title', | 'title', | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |