Add new method to User model

pull/9/head
Daniel Supernault 2018-04-18 23:57:31 -06:00
rodzic d391b1a2a6
commit 7e78261081
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -31,4 +31,9 @@ class User extends Authenticatable
{
return $this->hasOne(Profile::class);
}
public function url()
{
return url('/' . $this->username);
}
}