Leads - systeminc/laravel-admin GitHub Wiki
You could access our package Lead
instance with SLA::lead()
.
You could save multiple fields at once and manipulate with them. This opportunity is great for a contact page and we will serialize all your data.
Everything that we expect of you is an instance of Illuminate\Http\Request
i.e. $request->all()
.
If you provide us with email
and full_name
in the request we will send a welcome message to the user.
To set up custom message visit leads/settings
.
To start using leads, place code, as you could see below, as post
method in your controller:
SLA::lead()->subscribe($request->all())
Don't forget to use SLA
in your controller.
In case that you want to unsubscribe specific user, use:
SLA::lead()->unsubscribe($colunm, $value)
i.e. SLA::lead()->unsubscribe('email', '[email protected]')