Skip to content

Instantly share code, notes, and snippets.

View bobbybouwmann's full-sized avatar
🚀

Bobby Bouwmann bobbybouwmann

🚀
View GitHub Profile
<?php
final class CardActivationReminder extends Notification implements MailNotificationInterface
{
use Queueable;
/**
* @var User
*/
private $user;
@bobbybouwmann
bobbybouwmann / Example1.php
Created March 8, 2022 07:39
Exceptions for Christoph
class ChangeEmailController extends Controller
{
public function index(Request $request)
{
try {
$this->commandBus->handle(new ChangeEmailCommand($subscriptionId, $request->input('email'));
} catch (UnableToSendEmailChangeRequestException $exception) {