问题
I am using Laravel 4.1, and using facebook/php-sdk
with sentry actually it's derived from this questions answer:
Facebook Login with Sentry, A password is required for user [email], none given
This code isn't working any more:
$profile = $user->profiles()->save($profile);
throws this error:
How to resolve it?
route for that is available here Route code
My models are as bellows:
Profile model:
<?php
class Profile extends \Eloquent {
public function user()
{
return $this->belongsTo('User');
}
}
User model contains:
public function profiles()
{
return $this->hasMany('Profile');
}
回答1:
Solved in the comments :
Do you customize the model sentry using this method http://forums.laravel.io/viewtopic.php?pid=48274#p48274 ? – user1279647
来源:https://stackoverflow.com/questions/23981733/sentry-2-facebook-oauth-on-laravel-says-call-to-undefined-method-profile