Guest User

Untitled

a guest
Jan 24th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App;
  4.  
  5. use Illuminate\Notifications\Notifiable;
  6. use Illuminate\Foundation\Auth\User as Authenticatable;
  7.  
  8. class User extends Authenticatable
  9. {
  10. use Notifiable;
  11.  
  12. public function routeNotificationForSmscRu()
  13. {
  14. return $this->owner->phone;
  15. }
  16.  
  17. /**
  18. * The attributes that are mass assignable.
  19. *
  20. * @var array
  21. */
  22. protected $fillable = [
  23. 'name', 'email', 'password', 'phone',
  24. ];
  25.  
  26. /**
  27. * The attributes that should be hidden for arrays.
  28. *
  29. * @var array
  30. */
  31. protected $hidden = [
  32. 'password', 'remember_token',
  33. ];
  34.  
  35. }
Add Comment
Please, Sign In to add comment