Update laravel framework from 9 to 11, removed some old packages

This commit is contained in:
2024-07-04 15:03:11 +10:00
parent 1b4504cee2
commit 59dc825bf7
101 changed files with 1656 additions and 4062 deletions

View File

@@ -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);
}
}