I don't recommend doing it in service provider but it seems fine as you have seprate sevice provider for it and you are checking hasTable but I still do say can be done in middleware instead.
I don't recommend doing it in service provider but it seems fine as you have seprate sevice provider for it and you are checking hasTable but I still do say can be done in middleware instead.