Exemple #1
0
 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!');
 }
Exemple #2
0
<?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]);
});