12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
-
- namespace App;
-
- use Illuminate\Contracts\Auth\MustVerifyEmail;
- use Illuminate\Foundation\Auth\User as Authenticatable;
- use Illuminate\Notifications\Notifiable;
- use Spatie\Permission\Traits\HasRoles;
-
- class User extends Authenticatable
- {
- use Notifiable, HasRoles;
-
-
-
- protected $table = 'users';
- protected $fillable = [
- 'name',
- 'password',
- 'email',
- 'refferal_code'
- ];
-
-
-
- protected $hidden = [
- 'password',
- ];
- public $timestamps = false;
-
-
- protected $casts = [
- 'email_verified_at' => 'datetime',
- ];
-
- public function profile()
- {
- return $this->hasOne('App\Profile');
- }
-
- public function timeline()
- {
- return $this->hasMany('App\Model\Timeline');
- }
-
-
-
-
-
-
-
-
-
-
- }
|