src/Traits/Actions/Skeleton.php
protected function name(Eloquent $entity = null)
    {
        return app('translator')->has($key = $this->translationKey())
            ? trans($key)
            : title_case(str_replace('_', ' ', snake_case(class_basename($this))));
    }
protected function name(Eloquent $entity = null)
    {
        return app('translator')->has($key = $this->translationKey())
            ? trans($key)
            : title_case(str_replace('_', ' ', snake_case(class_basename($this))));
    }
protected function name ( Eloquent $ entity = null ) { return app ( 'translator' ) -> has ( $ key = $ this -> translationKey ( ) ) ? trans ( $ key ) : title_case ( str_replace ( '_' , ' ' , snake_case ( class_basename ( $ this ) ) ) ) ; }
Action name.

@param Eloquent $entity

@return string
Action name .