File tree Expand file tree Collapse file tree 4 files changed +20
-17
lines changed Expand file tree Collapse file tree 4 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,18 @@ jobs:
14
14
matrix :
15
15
os : [ubuntu-latest]
16
16
php : [8.1, 8.2]
17
- laravel : [8 .*, 9 .*, 10 .*]
17
+ laravel : [9 .*, 10 .*, 11 .*]
18
18
stability : [prefer-stable]
19
19
include :
20
- - laravel : 8.*
21
- testbench : ^6.0
22
20
- laravel : 9.*
23
21
testbench : ^7.0
24
22
- laravel : 10.*
25
23
testbench : ^8.0
24
+ - laravel : 11.*
25
+ testbench : ^9.0
26
+ exclude :
27
+ - laravel : 11.*
28
+ php : 8.1
26
29
27
30
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
28
31
Original file line number Diff line number Diff line change 18
18
"require" : {
19
19
"php" : " ^8.1" ,
20
20
"filament/filament" : " ^3.0" ,
21
- "illuminate/contracts" : " ^10.0" ,
22
21
"laravel/horizon" : " ^5.21" ,
23
- "laravel/telescope" : " ^4.16" ,
22
+ "laravel/telescope" : " ^4.16|^5.0 " ,
24
23
"spatie/laravel-package-tools" : " ^1.9.2"
25
24
},
26
25
"require-dev" : {
27
26
"laravel/pint" : " ^1.13" ,
28
- "nunomaduro/collision" : " ^7 .0" ,
29
- "orchestra/testbench" : " ^8 .0" ,
30
- "pestphp/pest" : " ^2.24" ,
31
- "pestphp/pest-plugin-laravel" : " ^2.2" ,
32
- "phpunit/phpunit" : " ^10.0"
27
+ "nunomaduro/collision" : " ^5.11|^6.4|^7.0|^8 .0" ,
28
+ "orchestra/testbench" : " ^6.0|^7.0|^8.0|^9 .0" ,
29
+ "pestphp/pest" : " ^1.4|^ 2.24" ,
30
+ "pestphp/pest-plugin-laravel" : " ^1.22|^ 2.2" ,
31
+ "phpunit/phpunit" : " ^9.0|^ 10.0"
33
32
},
34
33
"autoload" : {
35
34
"psr-4" : {
Original file line number Diff line number Diff line change 6
6
7
7
trait HasDebuggers
8
8
{
9
- private function authorized (string $ ability ): bool
9
+ private static function authorized (string $ ability ): bool
10
10
{
11
11
if (config ('filament-debugger.authorization ' )) {
12
12
return (bool ) auth (config ('filament.auth.guard ' ))->user ()?->can($ ability );
@@ -15,20 +15,20 @@ private function authorized(string $ability): bool
15
15
return true ;
16
16
}
17
17
18
- public function telescope (): NavigationItem
18
+ public static function telescope (): NavigationItem
19
19
{
20
20
return NavigationItem::make ()
21
- ->visible ($ this -> authorized (config ('filament-debugger.permissions.telescope ' )))
21
+ ->visible (self :: authorized (config ('filament-debugger.permissions.telescope ' )))
22
22
->group (config ('filament-debugger.group ' ))
23
23
->url (url: url ()->to (config ('filament-debugger.url.telescope ' )), shouldOpenInNewTab: true )
24
24
->icon ('heroicon-o-sparkles ' )
25
25
->label ('Telescope ' );
26
26
}
27
27
28
- public function horizon (): NavigationItem
28
+ public static function horizon (): NavigationItem
29
29
{
30
30
return NavigationItem::make ()
31
- ->visible ($ this -> authorized (config ('filament-debugger.permissions.horizon ' )))
31
+ ->visible (self :: authorized (config ('filament-debugger.permissions.horizon ' )))
32
32
->group (config ('filament-debugger.group ' ))
33
33
->icon ('heroicon-o-globe-europe-africa ' )
34
34
->url (url: url ()->to (config ('filament-debugger.url.horizon ' )), shouldOpenInNewTab: true )
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use Filament \Navigation \NavigationItem ;
3
4
use Stephenjude \FilamentDebugger \DebuggerPlugin ;
4
5
5
6
it ('can install configurations ' , function () {
11
12
});
12
13
13
14
it ('can open horizon ' , function () {
14
- $ this -> get (DebuggerPlugin::horizon ())->assertSuccessful ( );
15
+ expect (DebuggerPlugin::horizon ())->toBeInstanceOf (NavigationItem::class );
15
16
});
16
17
17
18
it ('can open telescope ' , function () {
18
- $ this -> get (DebuggerPlugin::telescope ())->assertSuccessful ( );
19
+ expect (DebuggerPlugin::telescope ())->toBeInstanceOf (NavigationItem::class );
19
20
});
You can’t perform that action at this time.
0 commit comments