Adding demo mode in filament application

Demo mode means the create/update/delete actions won't be applicable.
I used to do this via middleware in Laravel but wanted to do similar thing but can't figure it out.

Is there any easy way to add demo mode in a filament panel?
Was this page helpful?