ikinci temizlik tamamlandı
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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 ;
|
||||
Reference in New Issue
Block a user