The readme stated to add ConversionsApi::setUserData in AppServiceProvider boot method but it actually do nothing because the session in not yet initialized in AppServiceProvider, so auth()->user() will always be null.
I suggest to put ConversionsApi::setUserData in a middleware.
Type aanpassing
Documentation update
Testen
No test changed or new test needed.
Checklist:
Vervolledig de checklist & verwijder opties die niet relevant zijn.
[x] Mijn code voldoet aan de briefing
[x] Ik heb mijn code gecontroleerd en eventuele spelfouten gecorrigeerd
[x] Ik heb commentaar geplaatst waar nodig, vooral op moeilijk te begrijpen plaatsen
[x] Ik heb de wijzigingen in de documentatie toegevoegd
[x] Mijn wijzigingen genereren geen nieuwe lintfouten en waarschuwingen
[x] Ik heb het resultaat in verschillende browsers & responsief getest
[x] Ik heb de wijzigingen volledig getest op mobiel
Omschrijving
The readme stated to add
ConversionsApi::setUserData
inAppServiceProvider
boot method but it actually do nothing because the session in not yet initialized inAppServiceProvider
, soauth()->user()
will always be null.I suggest to put
ConversionsApi::setUserData
in a middleware.Type aanpassing
Testen
No test changed or new test needed.
Checklist:
Vervolledig de checklist & verwijder opties die niet relevant zijn.