code: public function transformFromFront(array $array)
      {
          $transformation = $this->getTransformation();
          $fillables = $this->getFillable();
          $transformed = [];
          
          /* Add fillables to array transformed */
          foreach ($fillables as $name) {
              if (! key_exists($name, $array)) {
                  continue;
              }
              
              $transformed[$name] = $array[$name];
          }
          
          /* Add transform fields to array transformed */
          foreach ($transformation as $name => $new_name) {
              if (! key_exists($new_name, $array)) {
                  continue;
              }
              
              $transformed[$name] = $array[$new_name];
          }
          
          return $transformed;
      }
docs: Transform Front to Model
  
  @return array