classes/Models/Change.php
public function attributesForModal()
    {
        // Remove some specific attributes.  Leaving empties in there so the updating
        // of values to NULL is displayed.
        $attributes = array_except($this->changed, [
            'id', 'updated_at', 'created_at', 'password', 'remember_token',
        ]);

        // Make more readable titles
        $out = [];
        foreach ($attributes as $key => $val) {
            $out[Text::titleFromKey($key)] = $val;
        }

        return $out;
    }
public function attributesForModal()
    {
        // Remove some specific attributes.  Leaving empties in there so the updating
        // of values to NULL is displayed.
        $attributes = array_except($this->changed, [
            'id', 'updated_at', 'created_at', 'password', 'remember_token',
        ]);

        // Make more readable titles
        $out = [];
        foreach ($attributes as $key => $val) {
            $out[Text::titleFromKey($key)] = $val;
        }

        return $out;
    }
public function attributesForModal ( ) { // Remove some specific attributes.  Leaving empties in there so the updating // of values to NULL is displayed. $ attributes = array_except ( $ this -> changed , [ 'id' , 'updated_at' , 'created_at' , 'password' , 'remember_token' , ] ) ; // Make more readable titles $ out = [ ] ; foreach ( $ attributes as $ key => $ val ) { $ out [ Text :: titleFromKey ( $ key ) ] = $ val ; } return $ out ; }
Get just the attributes that should be displayed in the admin modal.

@return array
Get just the attributes that should be displayed in the admin modal .