1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 07:33:04 +01:00
invoiceninja/app/Ninja/Intents/WebApp/FindInvoiceIntent.php
2019-01-30 22:25:07 +11:00

18 lines
317 B
PHP

<?php
namespace App\Ninja\Intents\WebApp;
use App\Ninja\Intents\InvoiceIntent;
class FindInvoiceIntent extends InvoiceIntent
{
public function process()
{
$invoice = $this->requestInvoice();
$url = $invoice ? $invoice->present()->url : '/invoices';
return redirect($url);
}
}