Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chapeupreto authored May 19, 2018
1 parent 8a91520 commit 796f7dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Bad:
public function getFullNameAttribute()
{
if (auth()->user() && auth()->user()->hasRole('client') && auth()->user()->isVerified()) {
return 'Mr. ' . $this->first_name . ' ' . $this->middle_name . ' ' $this->last_name;
return 'Mr. ' . $this->first_name . ' ' . $this->middle_name . ' ' . $this->last_name;
} else {
return $this->first_name[0] . '. ' . $this->last_name;
}
Expand All @@ -71,7 +71,7 @@ public function getFullNameAttribute()
return $this->isVerifiedClient() ? $this->getFullNameLong() : $this->getFullNameShort();
}

public function isVerfiedClient()
public function isVerifiedClient()
{
return auth()->user() && auth()->user()->hasRole('client') && auth()->user()->isVerified();
}
Expand Down Expand Up @@ -116,7 +116,7 @@ public function index()
return view('index', ['clients' => $this->client->getWithNewOrders()]);
}

Class Client extends Model
class Client extends Model
{
public function getWithNewOrders()
{
Expand Down

0 comments on commit 796f7dd

Please sign in to comment.