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
87bda8a8
Commit
87bda8a8
authored
Apr 15, 2023
by
alissonalbuquerque
Browse files
.
parent
68b6caa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/ImportUserController.php
View file @
87bda8a8
...
...
@@ -39,10 +39,15 @@ class ImportUserController extends Controller
foreach
(
$with_emails
as
$data
)
{
$user
=
User
::
whereEmail
(
$data
[
2
])
->
first
();
$user
->
campus_id
=
3
;
if
(
!
$user
->
save
()
)
{
dd
(
'errors'
);
if
(
$user
===
null
)
{
dd
(
$user
,
$data
[
2
]
);
}
// $user->campus_id = 3;
// if(!$user->save()) {
// dd('errors');
// }
}
fclose
(
$handle
);
...
...
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