update personal information and company information

This commit is contained in:
Surendran
2018-08-11 12:50:24 +08:00
parent cb8ce07406
commit 7852eea2fb
5 changed files with 103 additions and 37 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ class CompanyController extends Controller
public function company()
{
return response()->json(['user' => Auth::user()]);
return response()->json(['company' => Auth::user()->company()->first()]);
}
public function companyProfile(Request $request)