Add new config app_pembida

This commit is contained in:
Amir
2023-03-19 02:53:16 +08:00
parent ca17da4307
commit 313f2fcbe1
6 changed files with 7 additions and 10 deletions
+1
View File
@@ -3,6 +3,7 @@ APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_PEMBIDA=http://localhost:8080/
API_URL=https://api_arrahn.test/lelong/
API_URL_KAUNTER=http://kaunter.test/
API_VERIFY = false
+2 -2
View File
@@ -140,8 +140,8 @@ class UserController extends Controller
$user['password'] = Hash::make($request->password);
$user->save();
// dd($user->user_type);
if($user->user_type = 2){
return redirect()->to('https://bid.arrahn.com.my');
if($user->user_type == 2){
return redirect()->to(config('app.app_pembida'));
}
return redirect()->route('login')->with('success', 'Berjaya! Katalaluan Anda Telah Didaftarkan.');
+1
View File
@@ -249,4 +249,5 @@ return [
'api_url_kaunter' => env('API_URL_KAUNTER', 'http://localhost'),
'app_pembida' => env('APP_PEMBIDA', 'http://localhost:8080'),
];
@@ -13,11 +13,7 @@
@if ($success == true)
<div>
<h1 class="text-success"><i class="bi bi-check-circle" style="font-size: 4rem"></i></h1>
@if ($result['total_payment'] <= 11 )
<h3 class="text-success">Pembayaran Yuran Berjaya</h3>
@else
<h3 class="text-success">Pembayaran Bidaan Berjaya</h3>
@endif
<p class="fst-italic">*Sila rujuk e-mel anda untuk resit bayaran.</p>
<div class="mb-3 mt-5">
<div class="row">
@@ -105,8 +101,7 @@
@endif
</div>
<div class="card-footer">
<!-- <a href="https://bid.arrahn.com.my/result" class="btn btn-primary">To Home</a> -->
<a href="http://localhost:8080/result" class="btn btn-primary">To Home</a>
<a href="{{config('app.app_pembida') . 'result'}}" class="btn btn-primary">Ke Halaman Keputusan</a>
</div>
</div>
</div>
+1 -1
View File
@@ -57,7 +57,7 @@
</p>
<p style="text-align: center;">
<a href="{{'https://bid.arrahn.com.my'}}" class="btn">LOG MASUK ARRAHNBID</a>
<a href="{{config('app.app_pembida')}}" class="btn">LOG MASUK ARRAHNBID</a>
</p>
@@ -61,7 +61,7 @@
</p>
<p style="text-align: center;">
<a href="{{'https://adminbid.arrahn.com.my/forgot-password/'.$user['token']}}" class="btn">Tukar Katalaluan Anda</a>
<a href="{{env('APP_URL').'forgot-password/'.$user['token']}}" class="btn">Tukar Katalaluan Anda</a>
</p>