Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
f61228e1
Commit
f61228e1
authored
2 years ago
by
alissonalbuquerque
Browse files
Options
Download
Email Patches
Plain Diff
.
parent
87bda8a8
main
anexoB
dev-joao-pdf_generator
dump
feat_task_time
feat_template_calendar
fix_calendar_loading
fix_user_pad
text_fix
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/Http/Controllers/ImportUserController.php
+8
-7
app/Http/Controllers/ImportUserController.php
with
8 additions
and
7 deletions
+8
-7
app/Http/Controllers/ImportUserController.php
View file @
f61228e1
...
...
@@ -40,19 +40,20 @@ class ImportUserController extends Controller
{
$user
=
User
::
whereEmail
(
$data
[
2
])
->
first
();
$count
=
0
;
$list
=
[];
if
(
$user
===
null
)
{
dd
(
$user
,
$data
[
2
]);
array_push
(
$list
,
$data
[
2
]);
$count
++
;
}
else
{
$user
->
campus_id
=
3
;
$user
->
save
();
}
// $user->campus_id = 3;
// if(!$user->save()) {
// dd('errors');
// }
}
fclose
(
$handle
);
dd
(
3
,
$with_emails
,
$less_emails
);
dd
(
$count
,
$list
);
return
redirect
()
->
route
(
'import_index'
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help