Skip to content

How to change the label for the Create Button in Resource? #3332

Closed Answered by crynobone
JenuelDev asked this question in Q&A
Discussion options

You must be logged in to vote

Override the method from the desired resource class.

    /**
     * Get the text for the create resource button.
     *
     * @return string|null
     */
    public static function createButtonLabel()
    {
        return __('Create :resource', ['resource' => static::singularLabel()]);
    }

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@JenuelDev
Comment options

@Muetze42
Comment options

@Gismo1337
Comment options

@eslamabdallah74
Comment options

Answer selected by crynobone

This comment was marked as off-topic.

@ziming
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants