I use Horizon and web sockets with Laravel. How can I allow access to the two services for administrators only? Do I just have to create a new middleware for this?
/* * Dashboard Routes Middleware * * These middleware will be assigned to every dashboard route, giving you * the chance to add your own middleware to this list or change any of * the existing middleware. Or, you can simply stick with this list. */ 'middleware' => [ 'web', Authorize::class, ],