fix update profile error

fix update profile frontend unauthorize
This commit is contained in:
jack
2018-05-31 09:56:15 +08:00
parent e3632fce8d
commit d1023faeb4
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -149,8 +149,9 @@ class AuthController extends Controller
// TODO : create company for user
$company = new Company;
$company->user = $user;
$company->user_id = $user->id;
$company->save();
return response()->json(['success'=> true, 'message'=> 'Profile updated.']);
}