Tag Archives: Event

Laravel: Observer Setup Enhancement

Assalamualaikum, It’s been awhile since my last blog post. Today, just want to share something simple, an enhancement of LARAVEL: CREATE HASHED ID FOR A RESOURCE USING OBSERVER. Going to refactor a bit. First, let’s modify the app/Observers/Kernel.php, to be like the following: Next, add new config file for our observer – config/observers.php: And that’s… Read More »

Laravel: Create Welcome Email

A quick post on how to setup a welcome email on user registration. Make sure you have a mailtrap.io account for testing purpose, or production you may use SparkPost, or GMail SMTP, or any provider should work with proper .env on mail configuration.