Files
omair saleh 9fe0757baf big commit
2021-03-22 08:46:33 +08:00

33 lines
479 B
PHP

<?php
namespace App\Http\Controllers;
class invoiceClass
{
$user = User::fetch();
public function execute(){
$company = $user->company();
$price = $company->price();
$order = Order::fetch();
$items = $order->items();
$deliveryAddress = address();
$invoice = Invoice::create([
$order,
$items
]);
$convertToPdf = $invoice->pdf();
$email = email()->pdf();
solid
}
}