How to prevent passing invalid record ID to custom resource page URL in Filament?
Hi everyone,
I have a custom page in Filament that lists exams and quizzes, and a custom resource page for quizzes where the user can take the quiz. However, whenever I pass a $record to the URL of the custom resource page that does not exist in the database, the page still loads, which should not be the case. Can someone please advise on how I can ensure that the custom resource page only loads if the $record exists in the database? Thank you.
I have a custom page in Filament that lists exams and quizzes, and a custom resource page for quizzes where the user can take the quiz. However, whenever I pass a $record to the URL of the custom resource page that does not exist in the database, the page still loads, which should not be the case. Can someone please advise on how I can ensure that the custom resource page only loads if the $record exists in the database? Thank you.