Skip to content

Missing Clarifications in Laravel Documentation #65

Description

@cyrus-fa

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:

  1. 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.

  2. 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!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions