lundi 7 janvier 2019

How to save data with laravel and botman studio (API Telegram)

I'm developing a botman for the telegram api, I have to save data according to the user's choices, but I'm not sure how to do it since I'm using Botman Studio to develop the bot.

The order is:

The application asks the user something, the user responds and that response is saved in the database.

enter image description here

My file located in routes \ botman.php works well with the connection to the database, migrations, seeders, classes, conversations etc.

I just want an idea of ​​how to save the information I receive, I understand that the function "answer" is what should be taken as a value to save the information but in the classes I do not take the query.

If my message is confusing tell me, I'm not good at explaining, thanks :)



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2FbDX6B
via IFTTT

Aucun commentaire:

Enregistrer un commentaire