Commit 87bda8a8 authored by alissonalbuquerque's avatar alissonalbuquerque
Browse files

.

parent 68b6caa0
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment