Laravel-adminlte: Method adminlte_profile_url() not overwrites profile_url config option

Created on 4 Jun 2020  路  4Comments  路  Source: jeroennoten/Laravel-AdminLTE

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!!!!

Most helpful comment

@vsilva472 the release 3.3.0 is published, have fun :)

All 4 comments

@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 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jlcanizales picture jlcanizales  路  3Comments

santiagoferraz picture santiagoferraz  路  5Comments

dunfy picture dunfy  路  6Comments

ahishamali10 picture ahishamali10  路  5Comments

eraporsmk picture eraporsmk  路  5Comments