Hello and thank you for your work on this package!
While integrating the package with Laravel, I noticed two points in the documentation that could use clarification to help prevent confusion for new users:
-
Webhook URL in the nutgram:hook:set command
The Laravel section shows the following route definition:
Route::post('/webhook', FrontController::class);
However, the documentation does not mention that when running the command
php artisan nutgram:hook:set {url}
the {url} parameter should include the /webhook segment (e.g., https://example.com/webhook). Adding this note would make the setup process clearer.
-
CSRF Protection Exclusion
The docs also do not mention that the /webhook route needs to be excluded from CSRF protection. Without doing this, Laravel will block incoming webhook requests.
Adding these two details to the Laravel integration section would make the setup process smoother and help avoid common pitfalls.
Thanks again for maintaining this package!
Hello and thank you for your work on this package!
While integrating the package with Laravel, I noticed two points in the documentation that could use clarification to help prevent confusion for new users:
Webhook URL in the
nutgram:hook:setcommandThe Laravel section shows the following route definition:
However, the documentation does not mention that when running the command
the
{url}parameter should include the/webhooksegment (e.g.,https://example.com/webhook). Adding this note would make the setup process clearer.CSRF Protection Exclusion
The docs also do not mention that the
/webhookroute needs to be excluded from CSRF protection. Without doing this, Laravel will block incoming webhook requests.Adding these two details to the Laravel integration section would make the setup process smoother and help avoid common pitfalls.
Thanks again for maintaining this package!