classes/Fields/Listing.php
public static function createFromController($controller, $items)
    {
        $model = $controller->model();

        return Former::listing($model, null, null, null, [
            'controller' => $controller,
            'items' => $items,
        ]);
    }
public static function createFromController($controller, $items)
    {
        $model = $controller->model();

        return Former::listing($model, null, null, null, [
            'controller' => $controller,
            'items' => $items,
        ]);
    }
public static function createFromController ( $ controller , $ items ) { $ model = $ controller -> model ( ) ; return Former :: listing ( $ model , null , null , null , [ 'controller' => $ controller , 'items' => $ items , ] ) ; }
A factory to create an instance using the passed controller.  This is to prevent
duplicate controller instantations when invoked from the base controller.

@param  Bkwld\Decoy\Controllers\Base $controller
@param  LengthAwarePaginator         $items
@return Bkwld\Decoy\Field\Listing
A factory to create an instance using the passed controller . This is to prevent duplicate controller instantations when invoked from the base controller .