create new object for user

This commit is contained in:
2026-05-16 10:22:02 +03:30
parent a1bca2d80f
commit 3ca710228f
3 changed files with 11 additions and 0 deletions

View File

@@ -434,6 +434,7 @@ class UserController extends Controller
$user->password = Hash::make($request->password);
$user->national_code = $request->national_code;
$user->station_id = $request->station_id;
$user->save();
if (auth()->user()) {