The
__
function translates the given translation string or translation key using your localization files:<?php echo __('Welcome to our application');
echo __('messages.welcome');
<?php });
})->prepend([
'url' => $this->previousPageUrl(),
'label' => function_exists('__') ? __('pagination.previous') : 'Previous',
'active' => false,
])->push([
'url' => $this->nextPageUrl(),
<?php 'active' => false,
])->push([
'url' => $this->nextPageUrl(),
'label' => function_exists('__') ? __('pagination.next') : 'Next',
'active' => false,
]);
}
<?php ResetPassword::toMailUsing(function ($notifiable, $token) {
return (new MailMessage)
->subject(__('Reset Password Notification'))
->line(__('You are receiving this email because we received a password reset request for your account.'))
->action(__('Reset Password'), route('custom.password.reset', $token))
->line(__('If you did not request a password reset, no further action is required.'));
<?php ResetPassword::toMailUsing(function ($notifiable, $token) {
return (new MailMessage)
->subject(__('Reset Password Notification'))
->line(__('You are receiving this email because we received a password reset request for your account.'))
->action(__('Reset Password'), route('custom.password.reset', $token))
->line(__('If you did not request a password reset, no further action is required.'));
});
<?php return (new MailMessage)
->subject(__('Reset Password Notification'))
->line(__('You are receiving this email because we received a password reset request for your account.'))
->action(__('Reset Password'), route('custom.password.reset', $token))
->line(__('If you did not request a password reset, no further action is required.'));
});
<?php ->subject(__('Reset Password Notification'))
->line(__('You are receiving this email because we received a password reset request for your account.'))
->action(__('Reset Password'), route('custom.password.reset', $token))
->line(__('If you did not request a password reset, no further action is required.'));
});
UserFactory::new()->create();
<?php ResetPassword::toMailUsing(function ($notifiable, $token) {
return (new MailMessage)
->subject(__('Reset Password Notification'))
->line(__('You are receiving this email because we received a password reset request for your account.'))
->action(__('Reset Password'), route('custom.password.reset', $token))
->line(__('If you did not request a password reset, no further action is required.'));
<?php ResetPassword::toMailUsing(function ($notifiable, $token) {
return (new MailMessage)
->subject(__('Reset Password Notification'))
->line(__('You are receiving this email because we received a password reset request for your account.'))
->action(__('Reset Password'), route('custom.password.reset', $token))
->line(__('If you did not request a password reset, no further action is required.'));
});
<?php return (new MailMessage)
->subject(__('Reset Password Notification'))
->line(__('You are receiving this email because we received a password reset request for your account.'))
->action(__('Reset Password'), route('custom.password.reset', $token))
->line(__('If you did not request a password reset, no further action is required.'));
});
<?php ->subject(__('Reset Password Notification'))
->line(__('You are receiving this email because we received a password reset request for your account.'))
->action(__('Reset Password'), route('custom.password.reset', $token))
->line(__('If you did not request a password reset, no further action is required.'));
});
UserFactory::new()->create();
<?php public function toMail($notifiable)
{
return (new MailMessage)
->greeting(__('hi'))
->line(Carbon::tomorrow()->diffForHumans());
}
}
<?php public static function title()
{
return __('Delete');
}
public function visibleTo($item)
<?php {
return [
'behavior' => [
'display' => __('Localizations'),
'instructions' => __('statamic::messages.choose_entry_localization_deletion_behavior').' <a href="'.Statamic::docsUrl('/knowledge-base/localizing-entries#deleting').'" target="_blank">'.__('Learn more').'</a>',
'type' => 'button_group',
'options' => [
<?php return [
'behavior' => [
'display' => __('Localizations'),
'instructions' => __('statamic::messages.choose_entry_localization_deletion_behavior').' <a href="'.Statamic::docsUrl('/knowledge-base/localizing-entries#deleting').'" target="_blank">'.__('Learn more').'</a>',
'type' => 'button_group',
'options' => [
'delete' => __('Delete'),
<?php 'instructions' => __('statamic::messages.choose_entry_localization_deletion_behavior').' <a href="'.Statamic::docsUrl('/knowledge-base/localizing-entries#deleting').'" target="_blank">'.__('Learn more').'</a>',
'type' => 'button_group',
'options' => [
'delete' => __('Delete'),
'copy' => __('Detach'),
],
'validate' => 'required',