chimit's avatar

Email Verification in Lumen

Recently, Laravel added a convenient way to verify emails on new registrations. I tried to apply it to Lumen but came in conclusion that new email verification uses signed routes which are not available in Lumen. So the question is: how to get signed routes in Lumen?

0 likes
5 replies
D9705996's avatar

If you find yourself starting to need Laravel specific features in Lumen I recommend you migrate your application to Laravel.

You might be able to get some of the features to work, in the long term you are going to find yourself constantly fighting to get things to work that work out-of-the-box with Laravel. Upgrades will also be a nightmare!

The migration process should be fairly easy (depends on the features you use) but you could look at Laravel Shift that has a migration feature from Lumen to Laravel

https://laravelshift.com/convert-lumen-to-laravel

1 like
chimit's avatar

constantly fighting to get things to work that work out-of-the-box with Laravel

It's about me :D

D9705996's avatar

@chimit - I had a look at the differences between Lumen and Laravel and you are missing all of the required functionality for notifiable, signed routes, etc. Realistically your only option is to use Laravel

Have a Lumen project you want to upgrade to the full Laravel framework? It couldn't be easier. Since Lumen is powered by Laravel's components, just drop your code into a Laravel installation. You won't have to change a thing.

chimit's avatar

Notifications work good in Lumen. Even Laravel Echo is easy to adapt to Lumen. So I'm still not ready to move to the full Laravel framework with all its sessions and other features I don't need in my API.

1 like
richardfu71's avatar

I'm at the same boat, @chimit did you find a way or tutorial to do it?

P.S. I spent 2 days to get lumen able to send email through SES already...

Please or to participate in this conversation.