Paypal Standard Payment Gateways App

This commit is contained in:
cuneytsenturk
2017-11-20 17:28:15 +03:00
parent 10024b92f8
commit ed392c74a6
34 changed files with 598 additions and 3 deletions

View File

@ -0,0 +1,33 @@
<?php
namespace Database\Seeds;
use App\Models\Model;
use Artisan;
use Illuminate\Database\Seeder;
class Modules extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
$this->create();
Model::reguard();
}
private function create()
{
$company_id = $this->command->argument('company');
Artisan::call('module:install', ['alias' => 'offlinepayment', 'company_id' => $company_id]);
Artisan::call('module:install', ['alias' => 'paypalstandard', 'company_id' => $company_id]);
}
}