mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 04:37:32 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			317 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			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);
 | |
|     }
 | |
| }
 |