formatting

This commit is contained in:
denisdulici
2020-01-19 00:41:27 +03:00
parent fb5d166606
commit 5d9fd1482c
5 changed files with 7 additions and 5 deletions

View File

@ -41,7 +41,7 @@ class Invoices extends BulkAction
$invoices = $this->getSelectedRecords($request);
foreach ($invoices as $invoice) {
event(new PaymentReceived($invoice, []));
event(new PaymentReceived($invoice));
}
}

View File

@ -17,7 +17,7 @@ class PaymentReceived
*
* @param $invoice
*/
public function __construct($invoice, $request)
public function __construct($invoice, $request = [])
{
$this->invoice = $invoice;
$this->request = $request;

View File

@ -379,7 +379,7 @@ class Invoices extends Controller
public function markPaid(Invoice $invoice)
{
try {
event(new \App\Events\Sale\PaymentReceived($invoice, []));
event(new \App\Events\Sale\PaymentReceived($invoice));
$message = trans('invoices.messages.marked_paid');