added landing page event
This commit is contained in:
19
modules/OfflinePayments/Listeners/AddLandingPage.php
Normal file
19
modules/OfflinePayments/Listeners/AddLandingPage.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\OfflinePayments\Listeners;
|
||||
|
||||
use App\Events\Auth\LandingPageShowing as Event;
|
||||
|
||||
class AddLandingPage
|
||||
{
|
||||
/**
|
||||
* Handle the event.
|
||||
*
|
||||
* @param Event $event
|
||||
* @return void
|
||||
*/
|
||||
public function handle(Event $event)
|
||||
{
|
||||
$event->user->landing_pages['offline-payments.settings.edit'] = trans('offline-payments::general.name');
|
||||
}
|
||||
}
|
19
modules/PaypalStandard/Listeners/AddLandingPage.php
Normal file
19
modules/PaypalStandard/Listeners/AddLandingPage.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\PaypalStandard\Listeners;
|
||||
|
||||
use App\Events\Auth\LandingPageShowing as Event;
|
||||
|
||||
class AddLandingPage
|
||||
{
|
||||
/**
|
||||
* Handle the event.
|
||||
*
|
||||
* @param Event $event
|
||||
* @return void
|
||||
*/
|
||||
public function handle(Event $event)
|
||||
{
|
||||
$event->user->landing_pages['paypal-standard.settings.edit'] = trans('paypal-standard::general.name');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user