usamamuneerchaudhary /
filament-notifier
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Usamamuneerchaudhary\Notifier\Filament\Resources; |
||
| 4 | |||
| 5 | use Filament\Resources\Resource; |
||
| 6 | use Filament\Tables\Table; |
||
| 7 | use Usamamuneerchaudhary\Notifier\Filament\Resources\NotificationChannelResource\Pages\CreateNotificationChannel; |
||
| 8 | use Usamamuneerchaudhary\Notifier\Filament\Resources\NotificationChannelResource\Pages\EditNotificationChannel; |
||
| 9 | use Usamamuneerchaudhary\Notifier\Filament\Resources\NotificationChannelResource\Pages\ListNotificationChannels; |
||
| 10 | use Usamamuneerchaudhary\Notifier\Filament\Resources\NotificationChannelResource\Schemas\NotificationChannelForm; |
||
| 11 | use Usamamuneerchaudhary\Notifier\Filament\Resources\NotificationChannelResource\Tables\NotificationChannelTable; |
||
| 12 | use Usamamuneerchaudhary\Notifier\Models\NotificationChannel; |
||
| 13 | |||
| 14 | class NotificationChannelResource extends Resource |
||
| 15 | { |
||
| 16 | protected static ?string $model = NotificationChannel::class; |
||
| 17 | protected static string|null|\BackedEnum $navigationIcon = 'heroicon-o-envelope'; |
||
|
0 ignored issues
–
show
|
|||
| 18 | protected static string|null|\UnitEnum $navigationGroup = 'Notifier'; |
||
|
0 ignored issues
–
show
The type
UnitEnum was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 19 | protected static ?int $navigationSort = 3; |
||
| 20 | |||
| 21 | public static function form(\Filament\Schemas\Schema $schema): \Filament\Schemas\Schema |
||
| 22 | { |
||
| 23 | return NotificationChannelForm::configure($schema); |
||
| 24 | } |
||
| 25 | |||
| 26 | public static function table(Table $table): Table |
||
| 27 | { |
||
| 28 | return NotificationChannelTable::configure($table); |
||
| 29 | } |
||
| 30 | |||
| 31 | public static function getPages(): array |
||
| 32 | { |
||
| 33 | return [ |
||
| 34 | 'index' => ListNotificationChannels::route('/'), |
||
| 35 | 'create' => CreateNotificationChannel::route('/create'), |
||
| 36 | 'edit' => EditNotificationChannel::route('/{record}/edit'), |
||
| 37 | ]; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths