1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/Http/Requests/TicketInboundRequest.php
2019-01-30 22:25:07 +11:00

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;
}
}