mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 23:22:52 +01:00
29 lines
620 B
PHP
29 lines
620 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Requests;
|
||
|
|
||
|
use App\Ninja\Repositories\TicketRepository;
|
||
|
use App\Ninja\Tickets\Inbound\InboundTicketFactory;
|
||
|
use App\Ninja\Tickets\Inbound\InboundTicketService;
|
||
|
use Illuminate\Support\Facades\Log;
|
||
|
|
||
|
class TicketInboundRequest extends Request
|
||
|
{
|
||
|
public function entity()
|
||
|
{
|
||
|
$inboundTicketService = new InboundTicketService(new InboundTicketFactory(request()->getContent()), new TicketRepository());
|
||
|
return $inboundTicketService->process();
|
||
|
|
||
|
}
|
||
|
|
||
|
public function rules()
|
||
|
{
|
||
|
return [];
|
||
|
}
|
||
|
|
||
|
public function authorize()
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
}
|