24 lines
360 B
PHP
24 lines
360 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class ContainerRow extends Model
|
||
|
|
{
|
||
|
|
protected $fillable = [
|
||
|
|
'container_id',
|
||
|
|
'row_index',
|
||
|
|
'data',
|
||
|
|
];
|
||
|
|
|
||
|
|
protected $casts = [
|
||
|
|
'data' => 'array',
|
||
|
|
];
|
||
|
|
|
||
|
|
public function container()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Container::class);
|
||
|
|
}
|
||
|
|
}
|