app/Notifications/NewContactMessage.php
/**
     * Get the array representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return array
     */
Get the array representation of the notification.
@param  mixed  $notifiable
@return array
Get the array representation of the notification . @param mixed $notifiable @return array
public function toArray($notifiable)
    {
        return [
            'title' => 'New Contact Message',
            'message' => 'We have contact message from '. $this->contact_message->name,
            'url' => route('app.contact_message.index'),
            'data' => [
                'contact_message' => $this->contact_message
            ]
        ];
    }
public function toArray ( $ notifiable ) { return [ 'title' => 'New Contact Message' , 'message' => 'We have contact message from ' . $ this -> contact_message -> name , 'url' => route ( 'app.contact_message.index' ) , 'data' => [ 'contact_message' => $ this -> contact_message ] ] ; }
Get the array representation of the notification.
Get the array representation of the notification .