Support the ongoing development of Laravel.io →
Validation Mail Packages
Last updated 2 years ago.
0

Just to be clear, I want to make use of the two components in my Module exactly the same way I would in a normal Laravel app.

Validator::make(...) and Mail::send(...)

Last updated 2 years ago.
0

I have figured it out - was actually quite easy. (Forgive me, I'm a newbie to the Illuminate Components).

I've basically pulled the required packages into my vendor directory (which wasn't there before, obviously), and imported them into my module. Of course, I already knew how to do that - the issue was how to make use of the components.

For Validation, I used the Factory as it needs the Translator.

As for Mail, I haven't gotten there yet.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.