v2 first commit

This commit is contained in:
denisdulici
2019-11-16 10:21:14 +03:00
parent 5b23e9c2c4
commit 6d50fa8442
3075 changed files with 3451681 additions and 65594 deletions

View File

@ -0,0 +1,47 @@
<?php
namespace Modules\OfflinePayments\Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use Setting;
class OfflinePaymentsDatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
$this->create();
Model::reguard();
}
private function create()
{
$methods = array();
$methods[] = array(
'code' => 'offline-payments.cash.1',
'name' => 'Cash',
'customer' => '0',
'order' => '1',
'description' => null,
);
$methods[] = array(
'code' => 'offline-payments.bank_transfer.2',
'name' => 'Bank Transfer',
'customer' => '0',
'order' => '2',
'description' => null,
);
Setting::set('offline-payments.methods', json_encode($methods));
}
}