Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tradução para o campo "type" #60

Closed
emiolo opened this issue Jun 24, 2016 · 1 comment
Closed

Tradução para o campo "type" #60

emiolo opened this issue Jun 24, 2016 · 1 comment

Comments

@emiolo
Copy link

emiolo commented Jun 24, 2016

Olá,

Tem alguma configuração pra traduzir o campo "type" [updated, created, deleted] sem ter que fazer isso manualmente, ou seja, sem ter que criar um mutator?

Obrigado!

@anteriovieira
Copy link
Member

Sorry for the delay.

    public static $logCustomFields = [
        'title'  => 'O titulo foi definido como "{new.title||getNewTitle}"',
        'ip' => 'Registrado a partir do endereço {ip|route|getAnotherthing}',
        'publish_date' => [
            'created' => 'Registro CRIADO em: {new.publish_date}',
            'updated' => 'O Registro foi ATUALIZADO com sucesso em {new.publish_date}'
        ]
    ];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant