-
app/Services/Admin/InvoiceService.php
Open in GitHubuse App\Http\Requests\Admin\CompanyRequest; use App\Models\Invoice; use Carbon\Carbon; class InvoiceService { // public function store(CompanyRequest $request, $id) : void { Invoice::create([ 'price' => $this->price, 'start_date' => $request->start_date, 'end_date' => Carbon::create($request->start_date)->addMonths($this->month), 'packageId' => $this->packageId, 'companyId' => $id, ]); } // }
-
app/Services/Admin/CompanyInfoService.php
Open in GitHubuse App\Http\Requests\Admin\CompanyRequest; use App\Jobs\ImageConvertJob; use App\Models\CompanyInfo; class CompanyInfoService { private $invoiceService; protected $convertService; public function __construct(InvoiceService $invoiceService, ImageConvertService $convertService) { $this->invoiceService = $invoiceService; $this->convertService = $convertService; } public function store(CompanyRequest $request, $id): void { // $this->invoiceService->store($request, $id); } // }