Is it possible to customize the PrivacyPolicyController and TermsOfService controller? #52900
-
In my app, I want to use react-markdown to convert the privacy policy and terms of service to markdown, instead of receiving the HTML version as a prop, and having to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I managed to do this by creating my own controller:
And by configuring the route to use it: No more |
Beta Was this translation helpful? Give feedback.
I managed to do this by creating my own controller:
And by configuring the route to use it:
Route::get('/privacy-policy', [PrivacyPolicyController::class, 'show'])->name('privacy-policy.show');
No more
dangerouslySetHtml
:<ReactMarkdown>…