public function dataScaffold($spec = null)
    {
        $data = collect($this->data)->reject(function ($value, $key) use ($spec) {
            if ($spec == 'migration') {
                return !str_contains($key, 'opt');
            }

            return !str_contains($key, 'atr');
        });

        return array_values($data->toArray());
    }
public function dataScaffold($spec = null)
    {
        $data = collect($this->data)->reject(function ($value, $key) use ($spec) {
            if ($spec == 'migration') {
                return !str_contains($key, 'opt');
            }

            return !str_contains($key, 'atr');
        });

        return array_values($data->toArray());
    }
public function dataScaffold ( $ spec = null ) { $ data = collect ( $ this -> data ) -> reject ( function ( $ value , $ key ) use ( $ spec ) { if ( $ spec == 'migration' ) { return ! str_contains ( $ key , 'opt' ) ; } return ! str_contains ( $ key , 'atr' ) ; } ) ; return array_values ( $ data -> toArray ( ) ) ; }
Data for migration and views.

@param string specification

@return array
Data for migration and views .