feat(theme): update adminlte config

Also adds a profile url method to the user model. Needs new way to do this.

Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
2023-02-26 02:41:49 +00:00
parent 25fe13f091
commit 25ef8ad19d
2 changed files with 179 additions and 59 deletions

View File

@@ -189,4 +189,14 @@ class User extends Authenticatable implements MustVerifyEmail
{
return ! is_null($this->password);
}
/**
* Returns profile url.
* TODO: Find nicer way to do this
* @return string
*/
public function adminlte_profile_url(): string
{
return route('showSingleProfile', ['user' => $this->id]);
}
}