code: public function pageFor($model, $itemId = 0, ModelConfig $config = null) {
          $modelName = $this->resolveModelName($model);
          $item = $this->findItem($modelName, $itemId);
  
          $pageFactory = $this->app->make('Label305\AujaLaravel\Factory\PageFactory');
          /* @var $pageFactory PageFactory */
          return $pageFactory->create($modelName, $item, $config);
      }
docs: Creates a Page for given model.
  
  @param Controller|Eloquent|String $model  An object which represents the model to build items for.
  @param int                        $itemId (optional) The id of an instance of the model.
  @param ModelConfig                $config (optional) The `ModelConfig` to use.
  
  @return \Label305\Auja\Page\Page The created Page