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(...)
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community