30 lines
530 B
PHP
30 lines
530 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class ReportEntity extends Model
|
|
{
|
|
protected $fillable = [
|
|
'report_id',
|
|
'model_class',
|
|
'alias',
|
|
'join_type',
|
|
'join_first',
|
|
'join_operator',
|
|
'join_second',
|
|
'order',
|
|
];
|
|
|
|
protected $casts = [
|
|
'order' => 'integer',
|
|
];
|
|
|
|
public function report(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Report::class);
|
|
}
|
|
}
|