Skip to content
GitLab
Menu
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
Apr 15, 2023
by
alissonalbuquerque
Browse files
.
parent
87bda8a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
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'
);
}
...
...
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