protected function loadNonScalarAttributes()
    {

        $nonScalar = [];

        foreach (Cheat::get($this->model, 'casts') as $key => $cast) {
            if (in_array($cast, ['array', 'json', 'object', 'collection'], true)) {
                $nonScalar[] = $key;
            }
        }

        return $nonScalar;

    }
protected function loadNonScalarAttributes()
    {

        $nonScalar = [];

        foreach (Cheat::get($this->model, 'casts') as $key => $cast) {
            if (in_array($cast, ['array', 'json', 'object', 'collection'], true)) {
                $nonScalar[] = $key;
            }
        }

        return $nonScalar;

    }
protected function loadNonScalarAttributes ( ) { $ nonScalar = [ ] ; foreach ( Cheat :: get ( $ this -> model , 'casts' ) as $ key => $ cast ) { if ( in_array ( $ cast , [ 'array' , 'json' , 'object' , 'collection' ] , true ) ) { $ nonScalar [ ] = $ key ; } } return $ nonScalar ; }
Loads jsonable attributes so they get not filtered while saving
attributes.

@return array
Loads jsonable attributes so they get not filtered while saving attributes .