New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

hotrush/laravel-log-notification-channel

Log notifications channel for laravel
2,313 1

Larablocks Analysis

hotrush/laravel-log-notification-channel works with Laravel 8 and 9 (latest release 0.4.0, May 5, 2022), all past end of life (the last on Feb 6, 2024): no more fixes, even for security.

Laravel 5 in earlier releases.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 8 and 9, past end of life since Feb 6, 2024
  • No release in the last 12 months (last: May 5, 2022)
  • 2 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: May 5, 2022.
  • No releases in the last 12 months.
  • First released: Mar 25, 2019.
  • Monthly downloads: 2.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 29, 2026.

Install
composer require hotrush/laravel-log-notification-channel
Latest Version:0.4.0
PHP:>=5.5.9
Laravel:8 · 9
Older releases:5
License:MIT
Last Updated:Jul 17, 2023
Links: GitHub  ·  Packagist
Maintainer: hotrush

Laravel log notifications channel

Latest Version on Packagist Software License Total Downloads

Send notifications into log with Laravel, easier to pretend other services e.g. sms or push notifications.

Contents

Installation

composer require hotrush/laravel-log-notification-channel

Setting up the log service

You can add LOG_NOTIFICATIONS_CHANNEL into your .env file to customize log channel to use, otherwise default one will be used.

Usage

<?php

namespace App\Notifications;

use App\Post;
use Illuminate\Notifications\Notification;
use NotificationChannels\Log\LogChannel;
use NotificationChannels\Twilio\TwilioChannel;
use NotificationChannels\Log\LogMessage;


class AuthCodeCreatedNotification extends Notification
{
    /**
     * @var Post
     */
    private $post;

    /**
     * Create a new notification instance.
     *
     * @param Post $post
     * @return void
     */
    public function __construct(Post $post)
    {
        $this->post = $post;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function via($notifiable)
    {
        return app()->environment('production')
            ? [TwilioChannel::class]
            : [LogChannel::class];
    }

    /**
     * Get the log message representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return LogMessage
     */
    public function toLog($notifiable)
    {
        return new LogMessage('Pretended sms send to :number and with content: :content');
    }
}

License

The MIT License (MIT). Please see License File for more information.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
0.4.0 >=5.5.9 ^8.0|^9.0 MIT
0.3.0 >=5.5.9 ^8.0 MIT
0.2.0 >=5.5.9 ^8.0 MIT
0.1.0 >=5.5.9 ^5.1 MIT