Revert static pagina's via API want het was stuk

This commit is contained in:
NH Gooi
2025-07-16 17:10:24 +02:00
parent d0190a7b35
commit 7da73b92a9
2 changed files with 12 additions and 12 deletions

View File

@@ -149,17 +149,17 @@ class Controller extends BaseController
return is_object($obj) ? new \DateTime($obj->date, new \DateTimeZone($obj->timezone)) : \Carbon\Carbon::parse($obj)->setTimezone(date_default_timezone_get());
}
// public function __call($method, $arguments)
// {
// if (substr($method, 0, 5) == 'view_') {
// $view = substr($method, 5);
// if (view()->exists($view)) {
// return view($view);
// }
// }
public function __call($method, $arguments)
{
if (substr($method, 0, 5) == 'view_') {
$view = substr($method, 5);
if (view()->exists($view)) {
return view($view);
}
}
// return abort(404);
// }
return abort(404);
}
public function getSidebareData()
{