I am using Laravel 4.1 and using facebook/php-sdk
with a sentinel, this actually follows from these questions: Facebook Login with Sentry, for user [email], password is not required .
This code no longer works:
$profile = $user->profiles()->save($profile);
causes this error:
How to solve it?
the route for this is available here Route code
My models are bellows:
Profile Model:
<?php class Profile extends \Eloquent { public function user() { return $this->belongsTo('User'); } }
The user model contains:
public function profiles() { return $this->hasMany('Profile'); }
source share