public function fire($job, $module = '') { if ($module !== '') { liana($module)->setUp(); app('log')->info('Liana build successfull! (module: ' . $module . ')'); return; } liana()->setUp(); app('log')->info('Liana build successfull!'); }
<?php $app->get('/', function () { return view('home'); }); $app->get('/blog/{post}', function ($title) { $post = liana('blog')->find($title) ?: abort(404); return view('blog.post')->with(['post' => $post]); }); $app->get('/{page:.*}', function ($title) { $page = liana('pages')->find($title) ?: abort(404); return view('page')->with(['page' => $page]); });