You may use conditions on views in order prevent forms from acting normally. You may check if the user level is demo change action attribute from form. Also you may use middleware in order to prevent your controllers being executed from demo users.
Dec 7, 2018
2
Level 8
prevent forms from working
Hi ,
am creating a project and i wanna put a demo for users to test , however they will have access to the admin aria , i want to prevent any form with post method of working , i did that with javascript by prevent the default methods , i was wondering if there a better way to do so , in case the javascript never loaded .
Please or to participate in this conversation.