Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

alighasemzadeh/bap

154 stars
2 code files
View alighasemzadeh/bap on GitHub

app/Models/User.php

Open in GitHub
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
 
class User extends Authenticatable implements MustVerifyEmail
{
//
public function getNameAttribute()
{
if($this->first_name) {
return "{$this->first_name} {$this->last_name}";
}
return __('bap.user') . ":" . $this->id;
}
//
}

resources/views/livewire/admin/user/index.blade.php

Open in GitHub
// ...
 
<div class="font-weight-medium">{{ $user->name }}</div>
 
// ...

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.