public function save()
    {
        if (isset($this->file)) {
            $fileName = $this->entityId . '_' . $this->fieldId . '.' . $this->file->getClientOriginalExtension();
            $this->value = $fileName;
            $this->file->move(public_path() . config('asgard.dynamicfield.config.files-path'), $fileName);
        }
        parent::save();
    }
public function save()
    {
        if (isset($this->file)) {
            $fileName = $this->entityId . '_' . $this->fieldId . '.' . $this->file->getClientOriginalExtension();
            $this->value = $fileName;
            $this->file->move(public_path() . config('asgard.dynamicfield.config.files-path'), $fileName);
        }
        parent::save();
    }
public function save ( ) { if ( isset ( $ this -> file ) ) { $ fileName = $ this -> entityId . '_' . $ this -> fieldId . '.' . $ this -> file -> getClientOriginalExtension ( ) ; $ this -> value = $ fileName ; $ this -> file -> move ( public_path ( ) . config ( 'asgard.dynamicfield.config.files-path' ) , $ fileName ) ; } parent :: save ( ) ; }
Override base method.
Override base method .