37 lines
673 B
PHP
37 lines
673 B
PHP
<?php namespace App\Models;
|
|
/**
|
|
* @copyright (c) 2025 Notsoweb Software (https://notsoweb.com) - All Rights Reserved
|
|
*/
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Descripción
|
|
*
|
|
* @author Moisés Cortés C. <moises.cortes@notsoweb.com>
|
|
*
|
|
* @version 1.0.0
|
|
*/
|
|
class Packages extends Model
|
|
{
|
|
protected $fillable = [
|
|
'name',
|
|
'price',
|
|
'period',
|
|
'data_limit',
|
|
];
|
|
|
|
protected $casts = [
|
|
'name' => 'string',
|
|
'price' => 'float',
|
|
'period' => 'integer',
|
|
'data_limit' => 'integer',
|
|
];
|
|
|
|
public function packSims()
|
|
{
|
|
return $this->hasMany(PackSim::class, 'package_id');
|
|
}
|
|
}
|