fix(controller): resolve F-05 — fix 'potrait' typo to 'portrait' in SirenController and NotificationController
This commit is contained in:
@@ -97,7 +97,7 @@ class NotificationController extends Controller
|
||||
->orderByDesc('notification.timestamp')->get();
|
||||
|
||||
$pdf = Pdf::loadView('pdf.rfhistory',compact('rfHistory'))
|
||||
->setPaper('a4','potrait');
|
||||
->setPaper('a4','portrait');
|
||||
|
||||
return $pdf->download('Rainfall Alarm History.pdf');
|
||||
|
||||
@@ -113,7 +113,7 @@ class NotificationController extends Controller
|
||||
->orderByDesc('notification.timestamp')->get();
|
||||
|
||||
$pdf = Pdf::loadView('pdf.wlhistory',compact('wlHistory'))
|
||||
->setPaper('a4','potrait');
|
||||
->setPaper('a4','portrait');
|
||||
|
||||
return $pdf->download('Water Level Alarm History.pdf');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user