app/Models/CustomerNote.php
/**
     * Get the indexable data array for the model.
     *
     * @return array
     */
Get the indexable data array for the model.
@return array
Get the indexable data array for the model . @return array
public function toSearchableArray()
    {
        $array = $this->toArray();
        $customer = $this->customer->toArray();
        foreach ($customer as $attributeKey => $attributeValue) {
            $customer['customer_' . $attributeKey] = $attributeValue;
            unset($customer[$attributeKey]);
        }
        return array_merge($array, $customer);
    }
public function toSearchableArray ( ) { $ array = $ this -> toArray ( ) ; $ customer = $ this -> customer -> toArray ( ) ; foreach ( $ customer as $ attributeKey => $ attributeValue ) { $ customer [ 'customer_' . $ attributeKey ] = $ attributeValue ; unset ( $ customer [ $ attributeKey ] ) ; } return array_merge ( $ array , $ customer ) ; }
Get the indexable data array for the model.
Get the indexable data array for the model .