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

[5.3] Add greeting option to SimpleMessage notification #15108

Merged
merged 7 commits into from
Aug 28, 2016
Merged

[5.3] Add greeting option to SimpleMessage notification #15108

merged 7 commits into from
Aug 28, 2016

Commits on Aug 28, 2016

  1. Add greeting option to SimpleMessage notification

    By default 'Hello!' or 'Whoops!' is displayed as greeting.
    
    You can override this with the `greeting()` method:
    
    ```
    public function toMail($notifiable)
    {
        return (new MailMessage)
                    ->greeting("Hi {$notifiable->name},")
                    ->line('The introduction to the notification.')
                    ->action('Notification Action', 'https://laravel.com')
                    ->line('Thank you for using our application!');
    }
    ```
    balping committed Aug 28, 2016
    Configuration menu
    Copy the full SHA
    cef7017 View commit details
    Browse the repository at this point in the history
  2. Add missing new line

    balping committed Aug 28, 2016
    Configuration menu
    Copy the full SHA
    f7423cd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a4090a3 View commit details
    Browse the repository at this point in the history
  4. Remove nested ternary

    balping committed Aug 28, 2016
    Configuration menu
    Copy the full SHA
    0e193ea View commit details
    Browse the repository at this point in the history
  5. Replace tabs with spaces

    balping committed Aug 28, 2016
    Configuration menu
    Copy the full SHA
    8da2c77 View commit details
    Browse the repository at this point in the history
  6. Add extra space

    balping committed Aug 28, 2016
    Configuration menu
    Copy the full SHA
    5c515a8 View commit details
    Browse the repository at this point in the history
  7. Nah this should pass finally

    balping committed Aug 28, 2016
    Configuration menu
    Copy the full SHA
    6421e33 View commit details
    Browse the repository at this point in the history