Anto03
Anto03
FFilament
Created by Anto03 on 9/27/2024 in #❓┊help
UploadFile error
No description
5 replies
FFilament
Created by Anto03 on 9/27/2024 in #❓┊help
UploadFile error
local.ERROR: Path cannot be empty {"userId":1,"exception":"[object] (ValueError(code: 0): Path cannot be empty at C:\laragon\www\intranetv31\vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemAdapter.php:414) [stacktrace]
5 replies
FFilament
Created by Anto03 on 7/24/2024 in #❓┊help
Filamenf Firewall
i have a command that is running every minute, firewall:unblockip. And after is running is creating a log
5 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
38 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
38 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
<?php namespace App\Helpers; use Filament\Navigation\NavigationItem; class NavigationHelper { public function Navigation($module, $main) { $modules = json_decode(file_get_contents(base_path('modules_statuses.json')), true); $navigationItems = []; if ($main === 'not') { $navigationItems[] = NavigationItem::make('Main Dashboard') ->url("/admin"); } foreach ($modules as $key => $value) { $path = base_path("Modules/$key/Filament/Admin/Resources/*Resource.php"); $key_mod = strtolower($key); if ($key !== $module) { if($main !== 'not'){ $navigationItems[] = NavigationItem::make($key) ->url("admin/$key_mod") ->icon('heroicon-o-document') ->group('Modules') ->sort(1); }else{ $navigationItems[] = NavigationItem::make($key) ->url("$key_mod") ->icon('heroicon-o-document') ->group('Modules') ->sort(1); } } } return $navigationItems; } }
38 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
i have the same error
38 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
No description
38 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
i can t access the user inside it, i want to give access to navigation by using his role
38 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
38 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
public function Navigation($module, $main) { $modules = json_decode(file_get_contents(base_path('modules_statuses.json')), true); $navigationItems = []; if ($main === 'not') { $navigationItems[] = NavigationItem::make('Main Dashboard') ->url("/admin"); } foreach ($modules as $key => $value) { $path = base_path("Modules/$key/Filament/Admin/Resources/*Resource.php"); $key_mod = strtolower($key); if ($key !== $module) { if($main !== 'not'){ $navigationItems[] = NavigationItem::make($key) ->url("admin/$key_mod") ->visible(fn () => auth()->user()?->hasRole('user_panel')) ->icon('heroicon-o-document') ->group('Modules') ->sort(1); }else{ $navigationItems[] = NavigationItem::make($key) ->url("$key_mod") ->icon('heroicon-o-document') ->group('Modules') ->sort(1); } } } return $navigationItems; }
38 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
$navigationItems[] = NavigationItem::make($key) ->url("admin/$key_mod") ->visible(fn () => auth()->user()?->hasRole('user_panel')) ->icon('heroicon-o-document') ->group('Modules') ->sort(1);
38 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
it is the same for hasRole
38 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
No description
38 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
what alternative method can i use?
38 replies
FFilament
Created by Anto03 on 10/27/2023 in #❓┊help
User in admin panel
yes, i want to access kn PanelProvider
38 replies