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,36 @@
<?php
namespace App\Listeners\Updates;
use App\Events\UpdateFinished;
use App\Models\Company\Company;
use Artisan;
class Version109 extends Listener
{
const ALIAS = 'core';
const VERSION = '1.0.9';
/**
* Handle the event.
*
* @param $event
* @return void
*/
public function handle(UpdateFinished $event)
{
// Check if should listen
if (!$this->check($event)) {
return;
}
// Create new bill statuses
$companies = Company::all();
foreach ($companies as $company) {
Artisan::call('module:install', ['alias' => 'offlinepayment', 'company_id' => $company->id]);
Artisan::call('module:install', ['alias' => 'paypalstandard', 'company_id' => $company->id]);
}
}
}

View File

@@ -17,6 +17,7 @@ class EventServiceProvider extends ServiceProvider
'App\Listeners\Updates\Version106',
'App\Listeners\Updates\Version107',
'App\Listeners\Updates\Version108',
'App\Listeners\Updates\Version109',
],
'Illuminate\Auth\Events\Login' => [
'App\Listeners\Auth\Login',