replace offline to oflinepayment payment gateways
This commit is contained in:
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\OfflinePayment\Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Setting;
|
||||
|
||||
class OfflinePaymentDatabaseSeeder 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' => 'offlinepayment.cash.1',
|
||||
'name' => 'Cash',
|
||||
'order' => '1',
|
||||
'description' => null,
|
||||
);
|
||||
|
||||
$methods[] = array(
|
||||
'code' => 'offlinepayment.bank_transfer.2',
|
||||
'name' => 'Bank Transfer',
|
||||
'order' => '2',
|
||||
'description' => null,
|
||||
);
|
||||
|
||||
Setting::set('offlinepayment.methods', json_encode($methods));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user