Revert static pagina's via API want het was stuk
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user