classes/Models/Base.php
public function getAdminRowClassAttribute() {
        $classes = [];

        // Add a visbility classs
        if ($this->public) {
            $classes[] = 'is-public';
        }

        // Add a soft-deleted class
        if (method_exists($this, 'trashed') && $this->trashed()) {
            $classes[] = 'is-trashed';
        }

        // Return all classes
        return implode(' ', $classes);
    }
public function getAdminRowClassAttribute() {
        $classes = [];

        // Add a visbility classs
        if ($this->public) {
            $classes[] = 'is-public';
        }

        // Add a soft-deleted class
        if (method_exists($this, 'trashed') && $this->trashed()) {
            $classes[] = 'is-trashed';
        }

        // Return all classes
        return implode(' ', $classes);
    }
public function getAdminRowClassAttribute ( ) { $ classes = [ ] ; // Add a visbility classs if ( $ this -> public ) { $ classes [ ] = 'is-public' ; } // Add a soft-deleted class if ( method_exists ( $ this , 'trashed' ) && $ this -> trashed ( ) ) { $ classes [ ] = 'is-trashed' ; } // Return all classes return implode ( ' ' , $ classes ) ; }
Automatically add classes to rows in listing tables in the admin

@return string
Automatically add classes to rows in listing tables in the admin