D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
lactobokashi.com
/
app
/
Models
/
Filename :
AnalyticSection.php
back
Copy
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class AnalyticSection extends Model { use HasFactory; protected $table = "analytic_sections"; protected $fillable = ['analytic_id', 'name', 'data', 'section']; protected $casts = [ 'id' => 'integer', 'analytic_id' => 'integer', 'name' => 'string', 'data' => 'string', 'section' => 'integer', ]; public function analytic(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Analytic::class); } }