Skip to content

Instantly share code, notes, and snippets.

View MinaWilliam's full-sized avatar
🏠
Working from home

Mina William MinaWilliam

🏠
Working from home
View GitHub Profile
@MinaWilliam
MinaWilliam / UnifonicChannel.php
Last active January 4, 2023 09:55
Laravel unifonic notification channel (custom notification channel example: https://laravel.com/docs/8.x/notifications#custom-channels)
<?php
declare(strict_types=1);
namespace App\Notifications\Channels;
use App\Notifications\Messages\UnifonicMessage;
use Illuminate\Notifications\Notification;
use Illuminate\Support\Facades\Http;
class UnifonicChannel
@MinaWilliam
MinaWilliam / KeyGenerateCommand.sh
Created September 13, 2021 06:51
Laravel/Lumen generate an APP KEY command
sed -i "s|APP_KEY=[^\]*|APP_KEY="$(openssl rand -base64 32)"|" .env