public function fill($attributes)
    {
        foreach ($attributes as $key => $value) {
            if (in_array($key, $this->fillable)) {
                $this->{$key} = $value;
            }
        }
    }
public function fill($attributes)
    {
        foreach ($attributes as $key => $value) {
            if (in_array($key, $this->fillable)) {
                $this->{$key} = $value;
            }
        }
    }
public function fill ( $ attributes ) { foreach ( $ attributes as $ key => $ value ) { if ( in_array ( $ key , $ this -> fillable ) ) { $ this -> { $ key } = $ value ; } } }
Fill the attributes.

@param array $attributes
Fill the attributes .