We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e468f2e commit 1000b2dCopy full SHA for 1000b2d
stubs/TelescopeServiceProvider.stub
@@ -2,6 +2,7 @@
2
3
namespace App\Providers;
4
5
+use App\Models\User;
6
use Illuminate\Support\Facades\Gate;
7
use Laravel\Telescope\IncomingEntry;
8
use Laravel\Telescope\Telescope;
@@ -55,7 +56,7 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
55
56
*/
57
protected function gate(): void
58
{
- Gate::define('viewTelescope', function ($user) {
59
+ Gate::define('viewTelescope', function (User $user) {
60
return in_array($user->email, [
61
//
62
]);
0 commit comments