Following the documentation at https://github.com/jeroennoten/Laravel-AdminLTE/#641-user-image--description-example-code the code bellow should be placed inside user model.
public function adminlte_profile_url()
{
return route('user.profile', $this->id);
}
But with profile_url=false the profile buttons is not generated.
If i set profile_url=/profile the button appears with this value not with the value returned from adminlte_profile_url model.
My config:
'usermenu_enabled' => true,
'usermenu_header' => true,
'usermenu_header_class' => 'bg-primary'',
'usermenu_image' => true,
'usermenu_desc' => true,
'usermenu_profile_url' => true,
...
'profile_url' => false,
User model
public function adminlte_image()
{
return asset('/img/profiles/' . $this->image_url);
}
public function adminlte_profile_url()
{
return route('user.profile', $this->id);
}
public function adminlte_desc()
{
return $this->slogan;
}
Is there some other configuration that i miss?
Thanks in advance for this awesome implementation of AdminLTE!!!!
@vsilva472 The infos in the readme are for the coming release of this project.
@lacodimizer my version is 3.2.0, this options is not applied for this version?
correct, it's available on coming version 3.3.0
@vsilva472 the release 3.3.0 is published, have fun :)
Most helpful comment
@vsilva472 the release 3.3.0 is published, have fun :)