protected function resolveByOption($option)
    {
        $model = str_replace('/', '\\', $option);

        $namespaceModel = $this->container->getNamespace() .'Models\\' .$model;

        if (Str::startsWith($model, '\\')) {
            $this->data['fullModel'] = trim($model, '\\');
        } else {
            $this->data['fullModel'] = $namespaceModel;
        }

        $this->data['model'] = $model = class_basename(trim($model, '\\'));

        $this->data['camelModel'] = Str::camel($model);

        $this->data['pluralModel'] = Str::plural(Str::camel($model));

        //
        $config = $this->container['config'];

        $this->data['fullUserModel'] = $model = $config->get('auth.providers.users.model', 'App\Models\User');

        $this->data['userModel'] = class_basename(trim($model, '\\'));
    }
protected function resolveByOption($option)
    {
        $model = str_replace('/', '\\', $option);

        $namespaceModel = $this->container->getNamespace() .'Models\\' .$model;

        if (Str::startsWith($model, '\\')) {
            $this->data['fullModel'] = trim($model, '\\');
        } else {
            $this->data['fullModel'] = $namespaceModel;
        }

        $this->data['model'] = $model = class_basename(trim($model, '\\'));

        $this->data['camelModel'] = Str::camel($model);

        $this->data['pluralModel'] = Str::plural(Str::camel($model));

        //
        $config = $this->container['config'];

        $this->data['fullUserModel'] = $model = $config->get('auth.providers.users.model', 'App\Models\User');

        $this->data['userModel'] = class_basename(trim($model, '\\'));
    }
protected function resolveByOption ( $ option ) { $ model = str_replace ( '/' , '\\' , $ option ) ; $ namespaceModel = $ this -> container -> getNamespace ( ) . 'Models\\' . $ model ; if ( Str :: startsWith ( $ model , '\\' ) ) { $ this -> data [ 'fullModel' ] = trim ( $ model , '\\' ) ; } else { $ this -> data [ 'fullModel' ] = $ namespaceModel ; } $ this -> data [ 'model' ] = $ model = class_basename ( trim ( $ model , '\\' ) ) ; $ this -> data [ 'camelModel' ] = Str :: camel ( $ model ) ; $ this -> data [ 'pluralModel' ] = Str :: plural ( Str :: camel ( $ model ) ) ; // $ config = $ this -> container [ 'config' ] ; $ this -> data [ 'fullUserModel' ] = $ model = $ config -> get ( 'auth.providers.users.model' , 'App\Models\User' ) ; $ this -> data [ 'userModel' ] = class_basename ( trim ( $ model , '\\' ) ) ; }
Resolve Container after getting input option.

@param string $option

@return array
Resolve Container after getting input option .