/** * Collect views * * @param ViewCollector $view */ public function views(ViewCollector $view) { $view->handle('install.page.{content?}', function ($content) { return realpath(__DIR__ . '/../views/' . $content . '.php'); })->where('content', 'welcome|finish|requirements|account|database|timezone|install')->implicit('content', 'page'); $view->handle('install.jumbotron', function () { return realpath(__DIR__ . '/../views/jumbotron.php'); }); }
/** * Collect views * * @param ViewCollector $view */ public function views(ViewCollector $view) { $view->handle('welcome', function () { return realpath(__DIR__ . '/../views/welcome.php'); }); }
public function views(ViewCollector $view) { $view->handle('manager.{content}', Callback::class . '::viewContent')->where('content', 'page|setup|menu|login|create'); $view->handle('manager.module.{content}', Callback::class . '::viewModuleContent')->where('content', 'info|list|manage'); }