27 lines
3.6 KiB
PHP
27 lines
3.6 KiB
PHP
<?php
|
||
|
||
namespace Database\Seeders;
|
||
|
||
use Illuminate\Database\Seeder;
|
||
use Illuminate\Support\Facades\DB;
|
||
|
||
class DatabaseSeeder extends Seeder
|
||
{
|
||
public function run(): void
|
||
{
|
||
$pages = [
|
||
'features' => ['Built around your server', 'Tarnax is a native remote for your own qBittorrent server. Monitor transfers, organise your library and control file priorities. Requires the qBittorrent Web UI API and a trusted HTTPS connection. Credentials are managed by the native app.'],
|
||
'privacy' => ['Privacy notice — template', 'DRAFT — replace and review before publishing.\n\nController: [legal entity, address, contact]. We process account details, purchase references, support messages, device identifier hashes and consent choices to deliver software, secure accounts and provide support. Specify the lawful basis for each purpose.\n\nPaddle processes direct payments as merchant of record. Apple handles App Store purchases. Identify hosting, mail and other processors, international transfers and safeguards. We do not receive payment card details.\n\nSet retention periods for accounts, support, security and billing records. Explain access, correction, erasure, restriction, portability, objection and complaint rights, and name the supervisory authority. Use your account to export data or request deletion. Specify response deadlines and contact.'],
|
||
'terms' => ['Terms of use — template', 'DRAFT — legal review required.\n\nProvider: [legal name and address]. Describe supported software, system requirements, price, tax, license scope, device limit, permitted uses, updates, support and termination. Use only content you are authorised to access and share.\n\nDirect purchases are processed by Paddle. App Store purchases are subject to Apple’s applicable terms. Distribution entitlements are separate. State applicable consumer rights, warranties, liability limits, governing law and dispute process without excluding mandatory rights.'],
|
||
'refunds' => ['Refund policy — template', 'DRAFT — legal review required.\n\nFor direct purchases contact [support address] with your transaction reference. State the applicable refund period, eligibility and process in agreement with Paddle merchant terms and mandatory consumer rights. Explain digital-content cancellation consent where required. Approved refunds revoke direct licenses. App Store refunds are requested through Apple.'],
|
||
'cookies' => ['Cookie policy — template', 'DRAFT — review cookie inventory and retention periods.\n\nEssential session and CSRF cookies protect your account. Tarnax preference and visitor cookies remember choices and record consent for up to one year. Optional analytics and marketing are disabled by default. No analytics or advertising scripts ship in this project. Change or withdraw choices at any time using Cookie preferences. Document any trackers before enabling them.'],
|
||
];
|
||
foreach ($pages as $slug => [$title,$body]) {
|
||
DB::table('pages')->insertOrIgnore(['slug' => $slug, 'title' => $title, 'body' => str_replace('\\n', "\n", $body), 'description' => $title, 'published' => true, 'created_at' => now(), 'updated_at' => now()]);
|
||
}
|
||
foreach (['headline' => 'Your server. Your control.', 'tagline' => 'A native iPhone and iPad remote for your own qBittorrent server. Follow live transfers, organise your library and manage the details from wherever you are.', 'price_label' => 'Pricing coming soon'] as $key => $value) {
|
||
DB::table('settings')->insertOrIgnore(compact('key', 'value'));
|
||
}
|
||
}
|
||
}
|