public function with($data)
    {
        if (\is_array($data)) {
            $data = new Fluent($data);
        }

        $this->data = $data;

        return $this;
    }
public function with($data)
    {
        if (\is_array($data)) {
            $data = new Fluent($data);
        }

        $this->data = $data;

        return $this;
    }
public function with ( $ data ) { if ( \ is_array ( $ data ) ) { $ data = new Fluent ( $ data ) ; } $ this -> data = $ data ; return $ this ; }
Attach data.

<code>
// assign a data
$form->with(DB::table('users')->get());
</code>

@param  array|\stdClass|\Illuminate\Database\Eloquent\Model  $data

@return mixed
Attach data .