mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
34 lines
770 B
PHP
34 lines
770 B
PHP
<?php
|
|
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
*/
|
|
|
|
namespace App\Livewire\BillingPortal;
|
|
|
|
use Livewire\Component;
|
|
|
|
class Example extends Component
|
|
{
|
|
public array $context;
|
|
|
|
public function mount()
|
|
{
|
|
$this->dispatch('purchase.context', property: 'quantity', value: 1);
|
|
$this->dispatch('purchase.next');
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return <<<'HTML'
|
|
<div>This is step after auth. Currently logged in user is {{ $context['contact']['email'] }}.</div>
|
|
HTML;
|
|
}
|
|
}
|