class ProgramOperator extends Model
{
use SoftDeletes;
public $timestamps = true;
protected $table = 'program_operators';
protected $fillable = array('name', 'is_active', 'mascot_name', 'color1_name', 'color2_name', 'color3_name', 'song_name', 'song_theme', 'song_lyrics');
public function entity()
{
return $this->morphTo();
}
public function image()
{
return $this->morphOne(ProgramLogo::class, 'imageable');
}
}
class ProgramOperator extends Model
{
use SoftDeletes;
public $timestamps = true;
protected $table = 'program_operators';
protected $fillable = array('name', 'is_active', 'mascot_name', 'color1_name', 'color2_name', 'color3_name', 'song_name', 'song_theme', 'song_lyrics');
public function entity()
{
return $this->morphTo();
}
public function image()
{
return $this->morphOne(ProgramLogo::class, 'imageable');
}
}