updated docker to fix faker image error

updated on user phone verification, create a company profile
removed company store function
updated company with user relationship
added company factory
moved company routes into authenticated routes
updated company test
renamed "verify" routes to "verify-phone"
This commit is contained in:
jack
2018-05-28 17:14:09 +08:00
parent ff4e7764d5
commit c64c526d98
10 changed files with 114 additions and 78 deletions
+6
View File
@@ -145,6 +145,12 @@ class AuthController extends Controller
// attach role to user
$user->attachRole($role);
$user->update(['name' => $name, 'password' => Hash::make($password)]);
// TODO : create company for user
$company = new Company;
$company->user = $user;
$company->save();
return response()->json(['success'=> true, 'message'=> 'Profile updated.']);
}