ldc-supportweb/app/Models/Package.php

44 lines
709 B
PHP
Raw Normal View History

2022-08-30 13:21:07 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* @property string $name
* @property double $amount
*/
2022-08-30 13:21:07 +00:00
class Package extends Model
{
use HasFactory;
/**
* Indicates if the model should be timestamped.
*
* @var boolean
*/
public $timestamps = false;
/**
* The attributes that are fillable.
2022-08-30 13:21:07 +00:00
*
* @var array
*/
protected $fillable = [
'name',
'amount',
'published'
2022-08-30 13:21:07 +00:00
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'published' => 'boolean',
];
2022-08-30 13:21:07 +00:00
}