protected function includeDefaultIncludes($model, $data)
    {
        // Create an return array
        $returnData = [];

        // If we have default includes
        if ( ! empty( $this->defaultIncludes ) ) {

            // Loop through all includes
            foreach ($this->defaultIncludes as $include) {

                // Add the new data
                $returnData[ $include ] = $this->includeByName( $include, $model );

            }

        }

        // Return data
        return array_merge( $data, $returnData );
    }
protected function includeDefaultIncludes($model, $data)
    {
        // Create an return array
        $returnData = [];

        // If we have default includes
        if ( ! empty( $this->defaultIncludes ) ) {

            // Loop through all includes
            foreach ($this->defaultIncludes as $include) {

                // Add the new data
                $returnData[ $include ] = $this->includeByName( $include, $model );

            }

        }

        // Return data
        return array_merge( $data, $returnData );
    }
protected function includeDefaultIncludes ( $ model , $ data ) { // Create an return array $ returnData = [ ] ; // If we have default includes if ( ! empty ( $ this -> defaultIncludes ) ) { // Loop through all includes foreach ( $ this -> defaultIncludes as $ include ) { // Add the new data $ returnData [ $ include ] = $ this -> includeByName ( $ include , $ model ) ; } } // Return data return array_merge ( $ data , $ returnData ) ; }
Include default includes

@return Array
Include default includes