Files
kulakpos_web/public/restaurant/Modules/Authentication/database/seeders/UtilitySeeder.php

340 lines
12 KiB
PHP
Raw Normal View History

2026-03-15 17:08:23 +07:00
<?php
namespace Modules\Authentication\Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class UtilitySeeder extends Seeder
{
public function run()
{
// Default s_a_a_s_settings
DB::table('s_a_a_s_settings')->insert([
[
'type' => 'general',
'name' => 'site_name',
'value' => 'SAAS Site',
],
[
'type' => 'general',
'name' => 'site_title',
'value' => 'SAAS Title',
],
[
'type' => 'general',
'name' => 'phone',
'value' => '',
],
[
'type' => 'general',
'name' => 'office_phone',
'value' => '',
],
[
'type' => 'general',
'name' => 'email',
'value' => '',
],
[
'type' => 'general',
'name' => 'language',
'value' => 'en',
],
[
'type' => 'general',
'name' => 'google_map',
'value' => '',
],
[
'type' => 'general',
'name' => 'address',
'value' => '',
],
[
'type' => 'general',
'name' => 'on_google_map',
'value' => '',
],
[
'type' => 'general',
'name' => 'currency_symbol',
'value' => '$',
],
[
'type' => 'general',
'name' => 'logo',
'value' => 'logo.png',
],
[
'type' => 'general',
'name' => 'disabled_website',
'value' => 'no',
],
[
'type' => 'general',
'name' => 'copyright_text',
'value' => '&copy; Copyright 2025. All Rights Reserved by FueDevs LTD',
],
[
'type' => 'general',
'name' => 'facebook_link',
'value' => 'https://www.facebook.com/',
],
[
'type' => 'general',
'name' => 'google_plus_link',
'value' => 'https://www.google.com/',
],
[
'type' => 'general',
'name' => 'youtube_link',
'value' => 'https://www.youtube.com/',
],
[
'type' => 'general',
'name' => 'whats_app_link',
'value' => '',
],
[
'type' => 'general',
'name' => 'twitter_link',
'value' => 'https://www.twitter.com',
],
[
'type' => 'general',
'name' => 'header_notice',
'value' => '',
],
[
'type' => 'general',
'name' => 'app_version',
'value' => '1.0.0',
],
[
'type' => 'general',
'name' => 'app_url',
'value' => 'drive-link',
],
[
'type' => 'general',
'name' => 'primary_color',
'value' => null,
],
[
'type' => 'general',
'name' => 'secondary_color',
'value' => null,
],
[
'type' => 'general',
'name' => 'primary_container_color',
'value' => null,
],
[
'type' => 'general',
'name' => 'dark_primary_color',
'value' => null,
],
[
'type' => 'general',
'name' => 'dark_secondary_color',
'value' => null,
],
[
'type' => 'general',
'name' => 'dark_container_color',
'value' => null,
],
[
'type' => 'general',
'name' => 'text_color',
'value' => null,
],
[
'type' => 'general',
'name' => 'dark_text_color',
'value' => null,
],
[
'type' => 'general',
'name' => 'sidebar_selected_bg_color',
'value' => null,
],
[
'type' => 'general',
'name' => 'sidebar_selected_text_color',
'value' => null,
],
[
'type' => 'general',
'name' => 'sidebar_selected_text_color',
'value' => null,
],
[
'type' => 'vercel',
'name' => 'vercel_project_id',
'value' => 'prj_8PvmJHMdDZNsnjGEK3AarjW75uO4',
],
[
'type' => 'vercel',
'name' => 'vercel_token',
'value' => '8dBrjwsJuTMq3okIbXCoVo8S',
],
]);
// Default s_a_a_s_settings
DB::table('s_a_a_s_settings')->insert([
// Payment Gateway
[
'type' => 'payment_config',
'mode' => 'test',
'status' => 1,
'name' => 'bkash',
'payment_info' => json_encode([
'app_key' => '4f6o0cjiki2rfm34kfdadl1eqq',
'app_secret' => '2is7hdktrekvrbljjh44ll3d9l1dtjo4pasmjvs5vl5qr3fug4b',
'username' => 'sandboxTokenizedUser02',
'password' => 'sandboxTokenizedUser02@12345',
]),
],
[
'type' => 'payment_config',
'mode' => 'test',
'status' => 1,
'name' => 'paystack',
'payment_info' => json_encode([
'public_key' => 'pk_test_cdbf1367be2cde97517468c4752b0333525e88c2',
'secret_key' => 'sk_test_78934e683acd8b3fe7ae970f1b2b04ace0464873',
'merchant_email' => 'imdshariful171@gmail.com',
'callback_url' => 'https:\/\/api.paystack.co',
]),
],
[
'type' => 'payment_config',
'mode' => 'test',
'status' => 1,
'name' => 'razor_pay',
'payment_info' => json_encode([
'api_key' => 'rzp_test_jXtU63C342FF9B',
'api_secret' => 'nrzllzn50ELsRHwFwYthIgBT',
]),
],
[
'type' => 'payment_config',
'mode' => 'test',
'status' => 1,
'name' => 'stripe',
'payment_info' => json_encode([
'published_key' => 'pk_test_PYPVAZcZj6ismKW2kv2jACU900iAgMGCIb',
'api_key' => 'sk_test_bldfFddQARLRVTAJQPLeLWOH00hip4UNZF',
'mode' => 'test',
'other_config_key' => 'test_value',
]),
],
[
'type' => 'payment_config',
'mode' => 'test',
'status' => 1,
'name' => 'ssl_commerz',
'payment_info' => json_encode([
'store_id' => 'custo5cc042f7abf4c',
'store_password' => 'custo5cc042f7abf4c@ssl',
]),
],
[
'type' => 'payment_config',
'mode' => 'test',
'status' => 1,
'name' => 'pvit',
'payment_info' => json_encode([
'mc_tel_merchant' => '060234587',
'access_token' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.SnhhS251OU1JV1BYenJ6aUMxb1EvZWIyeXVWWFNhK05kZWJiU2lMVUFsN2pwa2Y1K1JpejFZZ25KaUQ1U2hyNUVZcWJ5QzF6L0tmd1lHOVFzK3NqK25WdkpBQm5NZDhqcUlSWjZ2eTFTdnIycE9lOFRDRm82VXY5eldvbkw3cXdwY3F5TW1Dc2JkeTQrbGMwdjB1dWdLNWJKdEJKSjZDZ1Nwb2tNU3dTV1RtTk5oa0hhZnVKVEkyb01CeWFvNDRHVDRXS01EaTMzRFZxSW5wV05YNXcxc2Nad1ZsQVRyRU1HTEYwOHpCVVlObk8waUxmeEI5d2FlbDdhWEZrWVFidTo6YzJ4YVpHKzlEMStoeUpVWG9mcUlWQT09.9yZOaT/zjc2xdW6k37O6qqp+4EzpSKJEwNNK06WXl0c=',
'mc_merchant_code' => 'RA5118',
]),
],
[
'type' => 'payment_config',
'mode' => 'test',
'status' => 1,
'name' => 'paypal',
'payment_info' => json_encode([
'client_id' => 'AabIbRZ97J0GHt0xf_DJj3u1dp6MU9boJGwnRY7OZ6fqBJVsrxd7PaBqqi6OGTYe2e4N4dWkYOkFSNtM',
'client_secret' => 'EIeb5GszxCqanj964p4HYBQ5HMx6TwUGedqY6zdfJqlV-TQMF-cgIP2kZP6d_ZgbS3qjiVJxQH1X6wPt',
]),
],
[
'type' => 'payment_config',
'mode' => 'test',
'status' => 1,
'name' => 'paymob_accept',
'payment_info' => json_encode([
'api_key' => 'ZXlKaGJHY2lPaUpJVXpVeE1pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SnVZVzFsSWpvaU1UWTNOelE0TmpZNU1pNDNNemd6TURZaUxDSndjbTltYVd4bFgzQnJJam94Tmpjd01EWXNJbU5zWVhOeklqb2lUV1Z5WTJoaGJuUWlmUS5NRzFqMGp1WXVDLWt3NjAyMlhHcXJWSTB5aWNCNERrVlQzZndWd21HNEtIT3duS0hhVFBJWTdsU3JlaWtvazItYUNyOHlVVDZFdG14SGw4M3Yzd0dHZw==',
'integration_id' => '1974622',
'iframe_id' => '368299',
'hmac_secret' => '3E031CEDBA789C96F50692CA8E7261BA',
'supported_country' => 'EG',
]),
],
[
'type' => 'payment_config',
'mode' => 'test',
'status' => 1,
'name' => 'flutterwave',
'payment_info' => json_encode([
'public_key' => 'LWPUBK_TEST-3f6a0b6c3d621c4ecbb9beeff516c92b-X',
'secret_key' => 'FLWSECK_TEST-ec27426eb062491500a9eb95723b5436-X',
'encryption_key' => 'FLWSECK_TEST951e36220f66',
]),
],
[
'type' => 'payment_config',
'mode' => 'test',
'status' => 1,
'name' => 'senang_pay',
'payment_info' => json_encode([
'merchant_id' => 'test_merchant_001',
'secret_key' => 'test_secret_key_001',
]),
],
[
'type' => 'payment_config',
'mode' => 'test',
'status' => 1,
'name' => 'paytm',
'payment_info' => json_encode([
'merchant_id' => 'test_mid_001',
'merchant_key' => 'test_key_001',
'merchant_website_link' => 'WEBSTAGING',
'refund_url' => 'https://securegw-stage.paytm.in/refund/apply',
]),
],
]);
DB::table('restaurant_image_s_a_a_s_settings')->insert([
[
'header_logo_light_theme' => 'demo.png',
'header_logo_dark_theme' => 'demo.png',
'footer_logo_light_theme' => 'demo.png',
'footer_logo_dark_theme' => 'demo.png',
'banner_image' => 'demo.png',
'created_at' => now(),
'updated_at' => now(),
],
]);
DB::table('restaurant_image_settings')->insert([
[
'restaurant_id' => 1,
'header_logo_light_theme' => 'demo.png',
'header_logo_dark_theme' => 'demo.png',
'footer_logo_light_theme' => 'demo.png',
'footer_logo_dark_theme' => 'demo.png',
'banner_image' => 'demo.png',
'created_at' => now(),
'updated_at' => now(),
],
]);
}
}