This commit is contained in:
Kevin Adametz 2020-02-14 10:18:44 +01:00
parent 3c0ab0f627
commit 1e8d5a31cf
98 changed files with 3716 additions and 711 deletions

View file

@ -3,6 +3,7 @@
namespace App\Http\Controllers;
use App\Repositories\UserRepository;
use App\User;
use Auth;
use Input;
use Validator;
@ -86,7 +87,7 @@ class UserDataController extends Controller
*/
public function userDataStore(){
$user = Auth::user();
$user = User::findOrFail(Auth::user()->id);
if(!$user->account){
$user->account = new UserAccount();
}