Skip to content

Instantly share code, notes, and snippets.

View ccc-developer's full-sized avatar

Donnell Wyche ccc-developer

View GitHub Profile
@ccc-developer
ccc-developer / EncouragementService.php
Last active November 19, 2024 02:11
Laravel Notification with Founder Encouragements 🎉
<?php
namespace App\Services;
class EncouragementService
{
protected array $signupMessages = [
// Celebration-focused
"🎉 WOOHOO! Another visionary just joined our journey! Your hard work is magnetic!",
"🚀 Look who's crushing it! Your value proposition just resonated with another awesome human!",
@ccc-developer
ccc-developer / gist:94d2d369b7739dd98dbe2ac799868cf4
Created December 4, 2023 21:37
Example Email Logger in Laravel
<?php
namespace App\Listeners;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Mail\Events\MessageSent;
use Carbon\Carbon;
use Symfony\Component\Mime\Email;
use Illuminate\Support\Facades\DB;
@ccc-developer
ccc-developer / gist:893a6561ae7325a31171f49e503c57b3
Created October 11, 2023 23:33
SkillRelationManager for ProfileResource
<?php
namespace App\Filament\Resources\ProfileResource\RelationManagers;
use App\Models\Skill;
use Filament\Facades\Filament;
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\RelationManagers\RelationManager;
use Filament\Tables;
@ccc-developer
ccc-developer / GetGavatarURL.php
Created May 25, 2022 01:03
Check whether a Gravatar exists for a specific e-mail address using Actions in Laravel
<?php
use App\Models\Profile;
use Illuminate\Support\Facades\Http;
use Lorisleiva\Actions\Concerns\AsAction;
class GetGavatarURL
{
use AsAction;
@ccc-developer
ccc-developer / About-Laravel-Twilio-Webhook-Callback.php
Last active June 12, 2025 10:22
Templates for handling a Twilio Webhook for a Status Callback using Laravel (including Event & Listener)
Hi. I'm new to Laravel & PHP, so thanks for joining me on this journey.
My application CareNote - https://carenote.app allows a user to send a Twilio SMS.
Twilio can post a SMS message status callback/webhook.
Laravel makes it straight-forward to handle this incoming Webhook.
Workflow:
• Route to Incoming Twilio Callback
• Add 'api/twilio/incoming/callback' to the VerifyCsrfToken exclude array
@ccc-developer
ccc-developer / Mac Addressbook SQLite Query
Created April 16, 2022 18:06
SQLite Query to Extract Data from Mac Address Book
SELECT DISTINCT
ZABCDRECORD.ZFIRSTNAME [FIRST NAME],
ZABCDRECORD.ZLASTNAME [LAST NAME],
ZABCDRECORD.ZMAIDENNAME [MAIDEN NAME],
ZABCDRECORD.ZMIDDLENAME [MIDDLE NAME],
ZABCDRECORD.ZNICKNAME [NICKNAME],
ZABCDRECORD.ZSUFFIX [SUFFIX],
ZABCDRECORD.ZTITLE [TITLE],
ZABCDRECORD.ZJOBTITLE [JOB TITLE],
ZABCDRECORD.ZORGANIZATION [ORGANIZATION],
@ccc-developer
ccc-developer / index.html
Created November 19, 2018 17:19
Square Cash - Mobile App Demo
<main role="main" id="container">
<header id="header" role="banner" class="full">
<section id="logo" class="semi">
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="25px" height="25px" viewBox="0 0 50 50">
<path fill="#28C101" d="M17.432,0h15.135c5.021,0,7.529,0,10.231,0.854c2.95,1.074,5.273,3.397,6.348,6.347 C50,9.903,50,12.412,50,17.432v15.136c0,5.019,0,7.528-0.854,10.23c-1.074,2.949-3.397,5.273-6.348,6.347 C40.097,50,37.588,50,32.567,50H17.432c-5.02,0-7.529,0-10.231-0.854c-2.95-1.073-5.273-3.397-6.347-6.347 C0,40.097,0,37.587,0,32.568V17.432c0-5.02,0-7.529,0.854-10.231c1.074-2.95,3.397-5.273,6.347-6.347C9.903,0,12.413,0,17.432,0 L17.432,0"></path>
<path fill="#FFFFFF" d="M32.305,15.826c-1.377-1.735-3.167-2.873-5.532-3.229v10.718 c4.085,1.193,8.017,2.896,8.017,8.229c0,4.572-2.817,7.988-8.017,8.375v2.164h-1.634l-0.87,0.004v-2.219 c-3.932-0.329-7.195-2.111-9.058-4.915l2.359-1.567c1.78,2.681,4.381,3.784,6.699,4.031l-0.001-11.809 c-3.973-1.072-8.271-2.692-8.271-7.886c0-4.8