public function init($default = null)
    {
        $this->request = $default;
        $locale = $this->locale;
        $entityItem = $this->entity;
        $type = $this->type;

        if (isset($locale)) {
            $entity = new Entity($entityItem->id, $entityItem->template, $locale, $type);
            $entity->init($default);
            $this->entities[$locale] = $entity;
        } else {
            $languages = LaravelLocalization::getSupportedLocales();
            foreach ($languages as $locale => $code) {
                $entity = new Entity(@$entityItem->id, @$entityItem->template, $locale, $type);
                $entity->init($default);
                $this->entities[$locale] = $entity;
            }
        }
    }
public function init($default = null)
    {
        $this->request = $default;
        $locale = $this->locale;
        $entityItem = $this->entity;
        $type = $this->type;

        if (isset($locale)) {
            $entity = new Entity($entityItem->id, $entityItem->template, $locale, $type);
            $entity->init($default);
            $this->entities[$locale] = $entity;
        } else {
            $languages = LaravelLocalization::getSupportedLocales();
            foreach ($languages as $locale => $code) {
                $entity = new Entity(@$entityItem->id, @$entityItem->template, $locale, $type);
                $entity->init($default);
                $this->entities[$locale] = $entity;
            }
        }
    }
public function init ( $ default = null ) { $ this -> request = $ default ; $ locale = $ this -> locale ; $ entityItem = $ this -> entity ; $ type = $ this -> type ; if ( isset ( $ locale ) ) { $ entity = new Entity ( $ entityItem -> id , $ entityItem -> template , $ locale , $ type ) ; $ entity -> init ( $ default ) ; $ this -> entities [ $ locale ] = $ entity ; } else { $ languages = LaravelLocalization :: getSupportedLocales ( ) ; foreach ( $ languages as $ locale => $ code ) { $ entity = new Entity ( @ $ entityItem -> id , @ $ entityItem -> template , $ locale , $ type ) ; $ entity -> init ( $ default ) ; $ this -> entities [ $ locale ] = $ entity ; } } }
Set entity data.

@param null $default
Set entity data .