diff --git a/app/Http/Controllers/User/UserTransactionController.php b/app/Http/Controllers/User/UserTransactionController.php index fce2cc3a..c428785f 100644 --- a/app/Http/Controllers/User/UserTransactionController.php +++ b/app/Http/Controllers/User/UserTransactionController.php @@ -22,6 +22,7 @@ class UserTransactionController extends Controller /** * Display a listing of the resource. */ + public function indexPembeli() { return view('user.transaction.pembeli.index', [ @@ -135,8 +136,7 @@ class UserTransactionController extends Controller 'email' => $pembeli, 'phone' => $nohp_pembeli, 'address' => Auth::user()->alamat, - 'city' => '', - 'postal_code' => '12190', + 'city' => Auth::user()->village->district->city->name, 'country_code' => 'IDN', ], ], @@ -145,8 +145,8 @@ class UserTransactionController extends Controller ], 'expiry' => [ 'start_time' => $now->format('Y-m-d H:i:s P'), - 'unit' => 'days', - 'duration' => 1, + 'unit' => 'hours', + 'duration' => 24, ], ]; diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index fd3a3975..87bef331 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -48,7 +48,7 @@ class DatabaseSeeder extends Seeder $now = Carbon::now()->tz('Asia/Jakarta'); $bulan = $now->format('F'); $tahun = $now->year; - Setting::factory()->create([ + Setting::create([ 'bulan' => $bulan, 'tahun' => $tahun, 'persentase' => 5,