32 lines
488 B
PHP
32 lines
488 B
PHP
<?php
|
||
|
||
namespace App\Http\Controllers;
|
||
|
||
use Illuminate\Http\Request;
|
||
|
||
use App\User;
|
||
|
||
use Illuminate\Support\Facades\DB;
|
||
|
||
use Illuminate\Support\Facades\Hash;
|
||
|
||
$p = $request->all();
|
||
|
||
$rand = rand(111,999);
|
||
|
||
$user = new User;
|
||
|
||
$user->name = $rand;
|
||
$user->email = $rand;
|
||
|
||
$user->uid = u()->id;
|
||
|
||
$user->phone = $rand;
|
||
|
||
$user->password = Hash::make($rand);
|
||
|
||
$user->save();
|
||
|
||
$return = back()->with("mesaj","Kullanıcı Eklendi");
|
||
|
||
echo $return ; |