Guest User

Untitled

a guest
Mar 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Models;
  4.  
  5. use App\User;
  6. use Illuminate\Database\Eloquent\Model;
  7.  
  8. class SocialAccount extends Model
  9. {
  10. protected $fillable = [
  11. 'user_id',
  12. 'provider_user_id',
  13. 'provider',
  14. 'created_at',
  15. 'updated_at'
  16. ];
  17.  
  18. public function user()
  19. {
  20. return $this->belongsTo(User::class);
  21. }
  22. }
Add Comment
Please, Sign In to add comment