From eec5840a6b50a7232136dc633ee9f2b6078c84ec Mon Sep 17 00:00:00 2001 From: salam Date: Mon, 31 Aug 2026 13:56:04 +0200 Subject: [PATCH] add policis --- NOTES.md | 2 + .../SofaScoreCategoryResource.php | 6 +- app/Policies/SofaScoreCategoryPolicy.php | 66 +++++++++++++++++++ app/Policies/StatistikoConfigPolicy.php | 66 +++++++++++++++++++ 4 files changed, 137 insertions(+), 3 deletions(-) create mode 100644 app/Policies/SofaScoreCategoryPolicy.php create mode 100644 app/Policies/StatistikoConfigPolicy.php diff --git a/NOTES.md b/NOTES.md index cf24f135..945f78d2 100644 --- a/NOTES.md +++ b/NOTES.md @@ -6,6 +6,8 @@ ssh -L 13306:127.0.0.1:3306 -p 58371 root@162.55.242.190 # use remote db with mongodb ssh -L 27027:127.0.0.1:27017 -p 58371 root@162.55.242.190 +a make:policy SofaScoreCategoryPolicy --model=SofaScoreCategory + importing https://github.com/christophrumpel/laravel-import-million-rows diff --git a/app/Filament/Clusters/StaticData/Resources/SofaScoreCategories/SofaScoreCategoryResource.php b/app/Filament/Clusters/StaticData/Resources/SofaScoreCategories/SofaScoreCategoryResource.php index af8388fe..a77166e2 100644 --- a/app/Filament/Clusters/StaticData/Resources/SofaScoreCategories/SofaScoreCategoryResource.php +++ b/app/Filament/Clusters/StaticData/Resources/SofaScoreCategories/SofaScoreCategoryResource.php @@ -23,11 +23,11 @@ class SofaScoreCategoryResource extends Resource protected static ?int $navigationSort = 13; protected static string|UnitEnum|null $navigationGroup = 'Statistiko'; - protected static ?string $recordTitleAttribute = 'Countries'; + protected static ?string $recordTitleAttribute = 'SS Countries'; - protected static ?string $navigationLabel = 'Countries'; + protected static ?string $navigationLabel = 'SS Countries'; - protected static ?string $modelLabel = 'Countries'; + protected static ?string $modelLabel = 'SS Countries'; public static function form(Schema $schema): Schema { diff --git a/app/Policies/SofaScoreCategoryPolicy.php b/app/Policies/SofaScoreCategoryPolicy.php new file mode 100644 index 00000000..947f0b5e --- /dev/null +++ b/app/Policies/SofaScoreCategoryPolicy.php @@ -0,0 +1,66 @@ +