Since yesterday, following update on 0.9.10, i got an issue when using a model inside a twig template.
/**
App\Models\Database\Organisation
@property int $id
@property string $name
@property string $logo_url
*/
class Organisation extends Eloquent
{
use HasRoles;
protected $fillable = [
'name',
'logo_url',
];
i got an error telling me that i can't get logo_url. In the template view, i see that the system is trying to call logo_url() , even if it's written : {{ organisation.logo_url }}
The only way to have it working is :
public function logo_url()
{
return $this->logo_url;
}
Hello,
Since yesterday, following update on 0.9.10, i got an issue when using a model inside a twig template.
/**
@property string $logo_url */ class Organisation extends Eloquent { use HasRoles;
protected $fillable = [ 'name', 'logo_url', ];
i got an error telling me that i can't get logo_url. In the template view, i see that the system is trying to call logo_url() , even if it's written : {{ organisation.logo_url }}
The only way to have it working is :
inside the model.
Will i have to go and change all my models ?
Thanks for the help