/**
  * @param Model $model
  */
 protected function generatePages(Model $model)
 {
     // Determine the controller class name
     $controller = Str::studly($model->title) . 'Controller';
     // Use a layout
     $layout = 'layouts.default';
     $urlIndex = Str::slug($model->title);
     $aliasIndex = str_replace('.', '', $urlIndex);
     $urlShow = $urlIndex . '/{id}';
     $aliasShow = $urlIndex . '.show';
     $zone = 'content';
     $method = 'get';
     PageRepository::createWithContent($model->title, $urlIndex, $controller . '@index', $layout, $method, $aliasIndex);
     PageRepository::createWithContent($model->title, $urlShow, $controller . '@show', $layout, $method, $aliasShow);
     Block::create(array('title' => sprintf('List %s items', $model->title), 'controller' => $controller . '@index'));
     Block::create(array('title' => sprintf('Show %s', $model->title), 'controller' => $controller . '@show'));
 }