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:
10
app/User.php
10
app/User.php
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user