original_string: public function with($data)
      {
          if (\is_array($data)) {
              $data = new Fluent($data);
          }
  
          $this->data = $data;
  
          return $this;
      }
code: public function with($data)
      {
          if (\is_array($data)) {
              $data = new Fluent($data);
          }
  
          $this->data = $data;
  
          return $this;
      }
code_tokens: public function with ( $ data ) { if ( \ is_array ( $ data ) ) { $ data = new Fluent ( $ data ) ; } $ this -> data = $ data ; return $ this ; }
docstring: Attach data.
  
  <code>
  // assign a data
  $form->with(DB::table('users')->get());
  </code>
  
  @param  array|\stdClass|\Illuminate\Database\Eloquent\Model  $data
  
  @return mixed
docstring_tokens: Attach data .