cartalyst / sentinel

A framework agnostic authentication & authorization system.
BSD 3-Clause "New" or "Revised" License
1.51k stars 238 forks source link

Integration with Laravel Telescope Gates #535

Open moiz-conceptlz opened 4 years ago

moiz-conceptlz commented 4 years ago

Laravel introduced Telescope which is a handy tool to view logs and events in a great dashboard interface. Telescope has the ability to lock access to these dashboards via Gates - as described on https://laravel.com/docs/6.x/telescope#dashboard-authorization

Essentially, the gate function can return a true or false if a particular user in session can have access to the dashboard.

However, with Sentinal at the Auth for Laravel, the Gate method does not work.

How can Sentinal be part of the Laravel Telescope?

Describe the example code and where do changes need to be applied to get Sentinal to work with Laravel Telescope.