Update laravel framework from 9 to 11, removed some old packages
This commit is contained in:
@@ -25,7 +25,8 @@ class InvoiceController extends Controller
|
||||
*/
|
||||
public function pdf(Invoice $o)
|
||||
{
|
||||
return PDF::loadView('u.invoice.home',['o'=>$o])->stream(sprintf('%s.pdf',$o->sid));
|
||||
return PDF::loadView('theme.backend.adminlte.u.invoice.home',['o'=>$o])
|
||||
->stream(sprintf('%s.pdf',$o->sid));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -36,6 +37,7 @@ class InvoiceController extends Controller
|
||||
*/
|
||||
public function view(Invoice $o): View
|
||||
{
|
||||
return View('invoice.view',['o'=>$o]);
|
||||
return view('theme.backend.adminlte.invoice.view')
|
||||
->with('o',$o);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user