What i am trying to achieve is in my database i have a table named channel
i am using laravel\'s eloquent class to access these the properties from the table
The problem tha
You could probably do it easily with Accessors / Mutators.
class Channel extends Eloquent {
public function getNameAttribute()
{
return $this->attributes['channel'];
}
public function setNameAttribute($value)
{
$this->attributes['channel'] = $value;
}
}