fix skit2
This commit is contained in:
@@ -10,6 +10,7 @@ use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
class RegisterController extends Controller
|
||||
{
|
||||
@@ -66,7 +67,16 @@ class RegisterController extends Controller
|
||||
*/
|
||||
protected function create(array $data)
|
||||
{
|
||||
Http::put(config('api.url') .'/api/otp/update_otp' ,[ 'nokp' => $data['icno'] ])->json();
|
||||
|
||||
// return User::create([
|
||||
// 'name' => $data['name'],
|
||||
// 'email' => $data['email'],
|
||||
// 'password' => Hash::make($data['password']),
|
||||
// ]);
|
||||
|
||||
return User::create([
|
||||
'icno' => $data['icno'],
|
||||
'name' => $data['name'],
|
||||
'email' => $data['email'],
|
||||
'password' => Hash::make($data['password']),
|
||||
@@ -75,7 +85,6 @@ class RegisterController extends Controller
|
||||
|
||||
protected function firsttimer()
|
||||
{
|
||||
|
||||
return view('auth.pertama-kali.pertamakalistep1');
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class HomeController extends Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
$this->middleware(['auth','verified']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -57,7 +57,9 @@ class SemakController extends Controller
|
||||
if(sizeof($gadai) != 0)
|
||||
$gadai = $gadai[0];
|
||||
|
||||
$transaction = Http::get(config('api.url').'/api/transaction/norujukan/'. $norujukan)->json();
|
||||
$transaction = Http::get(config('api.url').'/portal/transaksipelanggan',['norujukan' => $norujukan])->json();
|
||||
|
||||
// dd($transaction);
|
||||
|
||||
return view('penyata.summary',compact('cawangan_detail','transaction','customer','gadai','api_url'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user