Update users
This commit is contained in:
parent
819f5becf7
commit
b18810ba60
@ -13,6 +13,7 @@ use Illuminate\Http\Request;
|
|||||||
use Illuminate\Http\Response;
|
use Illuminate\Http\Response;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
|
use Illuminate\Support\Facades\Hash;
|
||||||
|
|
||||||
class UserController extends Controller
|
class UserController extends Controller
|
||||||
{
|
{
|
||||||
@ -152,15 +153,14 @@ class UserController extends Controller
|
|||||||
//echo 'VAZIO'.PHP_EOL;
|
//echo 'VAZIO'.PHP_EOL;
|
||||||
}else{
|
}else{
|
||||||
$pwd = randomPassword();
|
$pwd = randomPassword();
|
||||||
/*$user = User::create([
|
$user = User::create([
|
||||||
'client_id' => $arrayCodCliente[$i],
|
'client_id' => $arrayCodCliente[$i],
|
||||||
'name' => $userOld->name,
|
'name' => $userOld->name,
|
||||||
'client' =>
|
|
||||||
'email' => $arrayEmail[$i],
|
'email' => $arrayEmail[$i],
|
||||||
'password' => bcrypt('password'),
|
'password' => Hash::make($pwd),
|
||||||
'remember_token' => null,
|
'profile_picture' => $userOld->profile_picture
|
||||||
]);*/
|
]);
|
||||||
//$user->roles()->sync(2);
|
$user->roles()->sync(2);
|
||||||
echo $arrayCodCliente[$i].';'.$arrayEmail[$i].';'.$pwd.'<br>'.PHP_EOL;
|
echo $arrayCodCliente[$i].';'.$arrayEmail[$i].';'.$pwd.'<br>'.PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user