Changeset View
Changeset View
Standalone View
Standalone View
src/app/Discount.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 Discount. | * The eloquent definition of a Discount. | ||||
* | * | ||||
* @property bool $active | * @property bool $active | ||||
* @property string $code | * @property string $code | ||||
* @property string $description | * @property string $description | ||||
* @property int $discount | * @property int $discount | ||||
* @property int $tenant_id | * @property int $tenant_id | ||||
*/ | */ | ||||
class Discount extends Model | class Discount extends Model | ||||
{ | { | ||||
use HasTranslations; | use HasTranslations; | ||||
use UuidStrKeyTrait; | |||||
public $incrementing = false; | |||||
protected $keyType = 'string'; | |||||
protected $casts = [ | protected $casts = [ | ||||
'discount' => 'integer', | 'discount' => 'integer', | ||||
]; | ]; | ||||
protected $fillable = [ | protected $fillable = [ | ||||
'active', | 'active', | ||||
'code', | 'code', | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |