Closed MyZik closed 5 years ago
@MyZik I plan to add Laravel integration to this package, but before
What should my routes file (/routes/web.php) look like? To set webhook, commands path, commands handler, etc.
Its everything up to you, you are not limited.
Where can I create my commands Controller? And what name should I use? SurveyCommandController.php?
Same here. just create TelegramController
and add methods mapped to routes, or create separate controllers for each command.
What should the command Controller look like? For example, I need a survey command, should I use execute method in my Controller?
Yes
@akalongman thanks for your answer. Still there is no full Laravel-support of the library? It seems to me that a separate package would look cool
i found this https://github.com/irazasyed/telegram-bot-sdk
Official Laravel integration for this library will be added soon
@akalongman How you think to integrate the database migrations in the laravel framework? @MyZik https://github.com/MBoretto/Nostickers
@MBoretto I am still thinking about that
@akalongman I hope the package will come in soon... wanted to do it badly.. hahahaha
@ranrinc yes, yes. Do you want to help with testing?
@akalongman for sure... YES!!!
Ok guys, here we go https://github.com/php-telegram-bot/laravel
Do not forget that its pre-release and may be bugs :) Please help us in testing and let us know what we should fix or improve
Hi everyone! I want to use lib inside of clear Laravel project. And I have some questions about that.