original_string: protected function createSelectWithConstraint($name)
      {
          return [explode(':', $name)[0], function ($query) use ($name) {
              $query->select(explode(',', explode(':', $name)[1]));
          }];
      }
code: protected function createSelectWithConstraint($name)
      {
          return [explode(':', $name)[0], function ($query) use ($name) {
              $query->select(explode(',', explode(':', $name)[1]));
          }];
      }
code_tokens: protected function createSelectWithConstraint ( $ name ) { return [ explode ( ':' , $ name ) [ 0 ] , function ( $ query ) use ( $ name ) { $ query -> select ( explode ( ',' , explode ( ':' , $ name ) [ 1 ] ) ) ; } ] ; }
docstring: Create a constraint to select the given columns for the relation.
  
  @param  string  $name
  @return array
docstring_tokens: Create a constraint to select the given columns for the relation .