private function databasePut() {
    $media = [
      'filename' => $this->directory_uri . $this->filename_new,
      'mime' => $this->file->getMimeType(),
      'size' => $this->file->getSize(),
      'title' => $this->getTitle(),
      'alt' => $this->getAlt(),
      'name' => $this->getName(),
      'group' => $this->group,
      'status' => TRUE,
      'weight' => $this->getWeight(),
    ];

    $model = config('media.config.model');
    return $this->media()->save(new $model($media));
  }
private function databasePut() {
    $media = [
      'filename' => $this->directory_uri . $this->filename_new,
      'mime' => $this->file->getMimeType(),
      'size' => $this->file->getSize(),
      'title' => $this->getTitle(),
      'alt' => $this->getAlt(),
      'name' => $this->getName(),
      'group' => $this->group,
      'status' => TRUE,
      'weight' => $this->getWeight(),
    ];

    $model = config('media.config.model');
    return $this->media()->save(new $model($media));
  }
private function databasePut ( ) { $ media = [ 'filename' => $ this -> directory_uri . $ this -> filename_new , 'mime' => $ this -> file -> getMimeType ( ) , 'size' => $ this -> file -> getSize ( ) , 'title' => $ this -> getTitle ( ) , 'alt' => $ this -> getAlt ( ) , 'name' => $ this -> getName ( ) , 'group' => $ this -> group , 'status' => TRUE , 'weight' => $ this -> getWeight ( ) , ] ; $ model = config ( 'media.config.model' ) ; return $ this -> media ( ) -> save ( new $ model ( $ media ) ) ; }
Insert the media into the database

@return object
Devfactory\Media\Models\Media Object
Insert the media into the database