src/ConfigurableModel.php
public function ini($config)
    {
        $this->table = Config::get($config.'.table');

        $classSchema = Config::get($config.'.schema');
        $schema = new $classSchema();

        $attributes = collect(($schema)->getAttributes());

        $this->internalAttributes = new Bag();

        $this->iniFillable($attributes);
        $this->iniDates($attributes);
        $this->iniCasts($attributes);
    }
public function ini($config)
    {
        $this->table = Config::get($config.'.table');

        $classSchema = Config::get($config.'.schema');
        $schema = new $classSchema();

        $attributes = collect(($schema)->getAttributes());

        $this->internalAttributes = new Bag();

        $this->iniFillable($attributes);
        $this->iniDates($attributes);
        $this->iniCasts($attributes);
    }
public function ini ( $ config ) { $ this -> table = Config :: get ( $ config . '.table' ) ; $ classSchema = Config :: get ( $ config . '.schema' ) ; $ schema = new $ classSchema ( ) ; $ attributes = collect ( ( $ schema ) -> getAttributes ( ) ) ; $ this -> internalAttributes = new Bag ( ) ; $ this -> iniFillable ( $ attributes ) ; $ this -> iniDates ( $ attributes ) ; $ this -> iniCasts ( $ attributes ) ; }
Initialize the model by the configuration.

@param string $config
Initialize the model by the configuration .