{"message":"file_put_contents(\/var\/www\/paymenter\/storage\/app\/invoices\/711.pdf): Failed to open stream: Permission denied","file":"\/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Filesystem\/Filesystem.php","line":204,"trace":"#0 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Bootstrap\/HandleExceptions.php(258): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError()\n#1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}()\n#2 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Filesystem\/Filesystem.php(204): file_put_contents()\n#3 \/var\/www\/paymenter\/vendor\/barryvdh\/laravel-dompdf\/src\/PDF.php(205): Illuminate\\Filesystem\\Filesystem->put()\n#4 \/var\/www\/paymenter\/app\/Helpers\/NotificationHelper.php(152): Barryvdh\\DomPDF\\PDF->save()\n#5 \/var\/www\/paymenter\/app\/Helpers\/NotificationHelper.php(172): App\\Helpers\\NotificationHelper::invoiceNotification()\n#6 \/var\/www\/paymenter\/app\/Listeners\/SendMailListener.php(34): App\\Helpers\\NotificationHelper::invoicePaidNotification()\n#7 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Events\/Dispatcher.php(508): App\\Listeners\\SendMailListener->handle()\n#8 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Events\/Dispatcher.php(315): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}()\n#9 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Events\/Dispatcher.php(295): Illuminate\\Events\\Dispatcher->invokeListeners()\n#10 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/helpers.php(505): Illuminate\\Events\\Dispatcher->dispatch()\n#11 \/var\/www\/paymenter\/app\/Observers\/InvoiceObserver.php(48): event()\n#12 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Events\/Dispatcher.php(508): App\\Observers\\InvoiceObserver->updated()\n#13 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Events\/Dispatcher.php(315): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}()\n#14 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Events\/Dispatcher.php(295): Illuminate\\Events\\Dispatcher->invokeListeners()\n#15 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Concerns\/HasEvents.php(224): Illuminate\\Events\\Dispatcher->dispatch()\n#16 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Model.php(1320): Illuminate\\Database\\Eloquent\\Model->fireModelEvent()\n#17 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Model.php(1233): Illuminate\\Database\\Eloquent\\Model->performUpdate()\n#18 \/var\/www\/paymenter\/app\/Listeners\/InvoiceTransactionCreatedListener.php(18): Illuminate\\Database\\Eloquent\\Model->save()\n#19 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Events\/Dispatcher.php(508): App\\Listeners\\InvoiceTransactionCreatedListener->handle()\n#20 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Events\/Dispatcher.php(315): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}()\n#21 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Events\/Dispatcher.php(295): Illuminate\\Events\\Dispatcher->invokeListeners()\n#22 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/helpers.php(505): Illuminate\\Events\\Dispatcher->dispatch()\n#23 \/var\/www\/paymenter\/app\/Observers\/InvoiceTransactionObserver.php(23): event()\n#24 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Events\/Dispatcher.php(508): App\\Observers\\InvoiceTransactionObserver->created()\n#25 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Events\/Dispatcher.php(315): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}()\n#26 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Events\/Dispatcher.php(295): Illuminate\\Events\\Dispatcher->invokeListeners()\n#27 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Concerns\/HasEvents.php(224): Illuminate\\Events\\Dispatcher->dispatch()\n#28 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Model.php(1422): Illuminate\\Database\\Eloquent\\Model->fireModelEvent()\n#29 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Model.php(1240): Illuminate\\Database\\Eloquent\\Model->performInsert()\n#30 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Relations\/HasOneOrMany.php(370): Illuminate\\Database\\Eloquent\\Model->save()\n#31 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Support\/helpers.php(485): Illuminate\\Database\\Eloquent\\Relations\\HasOneOrMany->Illuminate\\Database\\Eloquent\\Relations\\{closure}()\n#32 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Relations\/HasOneOrMany.php(367): tap()\n#33 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Relations\/HasOneOrMany.php(262): Illuminate\\Database\\Eloquent\\Relations\\HasOneOrMany->create()\n#34 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Builder.php(1959): Illuminate\\Database\\Eloquent\\Relations\\HasOneOrMany->Illuminate\\Database\\Eloquent\\Relations\\{closure}()\n#35 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Relations\/HasOneOrMany.php(262): Illuminate\\Database\\Eloquent\\Builder->withSavepointIfNeeded()\n#36 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Relations\/HasOneOrMany.php(246): Illuminate\\Database\\Eloquent\\Relations\\HasOneOrMany->createOrFirst()\n#37 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Relations\/HasOneOrMany.php(277): Illuminate\\Database\\Eloquent\\Relations\\HasOneOrMany->firstOrCreate()\n#38 \/var\/www\/paymenter\/app\/Helpers\/ExtensionHelper.php(495): Illuminate\\Database\\Eloquent\\Relations\\HasOneOrMany->updateOrCreate()\n#39 \/var\/www\/paymenter\/extensions\/Gateways\/PayPal\/PayPal.php(277): App\\Helpers\\ExtensionHelper::addPayment()\n#40 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php(46): Paymenter\\Extensions\\Gateways\\PayPal\\PayPal->capture()\n#41 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php(265): Illuminate\\Routing\\ControllerDispatcher->dispatch()\n#42 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php(211): Illuminate\\Routing\\Route->runController()\n#43 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(822): Illuminate\\Routing\\Route->run()\n#44 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(180): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()\n#45 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(137): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#46 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(821): Illuminate\\Pipeline\\Pipeline->then()\n#47 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(800): Illuminate\\Routing\\Router->runRouteWithinStack()\n#48 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(764): Illuminate\\Routing\\Router->runRoute()\n#49 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(753): Illuminate\\Routing\\Router->dispatchToRoute()\n#50 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(200): Illuminate\\Routing\\Router->dispatch()\n#51 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(180): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()\n#52 \/var\/www\/paymenter\/vendor\/livewire\/livewire\/src\/Features\/SupportDisablingBackButtonCache\/DisableBackButtonCacheMiddleware.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#53 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(219): Livewire\\Features\\SupportDisablingBackButtonCache\\DisableBackButtonCacheMiddleware->handle()\n#54 \/var\/www\/paymenter\/vendor\/barryvdh\/laravel-debugbar\/src\/Middleware\/InjectDebugbar.php(59): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#55 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(219): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle()\n#56 \/var\/www\/paymenter\/app\/Http\/Middleware\/ProxyMiddleware.php(33): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#57 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(219): App\\Http\\Middleware\\ProxyMiddleware->handle()\n#58 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#59 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()\n#60 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(219): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()\n#61 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#62 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(51): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()\n#63 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(219): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()\n#64 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#65 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(219): Illuminate\\Http\\Middleware\\ValidatePostSize->handle()\n#66 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(109): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#67 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(219): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()\n#68 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Http\/Middleware\/HandleCors.php(48): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#69 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(219): Illuminate\\Http\\Middleware\\HandleCors->handle()\n#70 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Http\/Middleware\/TrustProxies.php(58): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#71 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(219): Illuminate\\Http\\Middleware\\TrustProxies->handle()\n#72 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/InvokeDeferredCallbacks.php(22): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#73 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(219): Illuminate\\Foundation\\Http\\Middleware\\InvokeDeferredCallbacks->handle()\n#74 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Http\/Middleware\/ValidatePathEncoding.php(26): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#75 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(219): Illuminate\\Http\\Middleware\\ValidatePathEncoding->handle()\n#76 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(137): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#77 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then()\n#78 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()\n#79 \/var\/www\/paymenter\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Application.php(1220): Illuminate\\Foundation\\Http\\Kernel->handle()\n#80 \/var\/www\/paymenter\/public\/index.php(20): Illuminate\\Foundation\\Application->handleRequest()\n#81 {main}"}