1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/Ninja/Intents/WebApp/FindInvoiceIntent.php
2017-04-05 18:04:44 +03: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);
}
}