Implement feature flags and update views

This commit implements feature flags using the "ylsideas/feature-flags" library and updates various frontend views to show or hide sections based on the feature flag. Additionally, a new migration file is created for the features database table and the LibraryItem model is updated with a new searchLibraryItems function. The composer.json and composer.lock files are updated to include the new dependencies.
This commit is contained in:
HolgerHatGarKeineNode
2023-12-08 21:40:48 +01:00
parent 245ebc9220
commit 0c820be43b
27 changed files with 377 additions and 98 deletions

80
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "2c9601391937e04775f009c27b16b988",
"content-hash": "70c5fa8fde773985983d2761e278c402",
"packages": [
{
"name": "akuechler/laravel-geoly",
@@ -14560,6 +14560,84 @@
],
"time": "2023-10-25T05:42:02+00:00"
},
{
"name": "ylsideas/feature-flags",
"version": "v2.4.2",
"source": {
"type": "git",
"url": "https://github.com/ylsideas/feature-flags.git",
"reference": "39baec4645098c3d5bc52d4e5c3c5b2bc4204f94"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ylsideas/feature-flags/zipball/39baec4645098c3d5bc52d4e5c3c5b2bc4204f94",
"reference": "39baec4645098c3d5bc52d4e5c3c5b2bc4204f94",
"shasum": ""
},
"require": {
"illuminate/contracts": "10.*|^9.6",
"php": "^8.1"
},
"require-dev": {
"laravel/pint": "^1.2",
"nunomaduro/collision": "^6.0|^5.0",
"nunomaduro/larastan": "^2.0|^1.0",
"orchestra/testbench": "^8.0|^7.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpdoc-parser": "^1.15",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.5.13",
"rector/rector": "^0.14.2",
"spatie/laravel-ray": "^1.26"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"YlsIdeas\\FeatureFlags\\FeatureFlagsServiceProvider"
],
"aliases": {
"Features": "YlsIdeas\\FeatureFlags\\Facades\\Features"
}
}
},
"autoload": {
"psr-4": {
"YlsIdeas\\FeatureFlags\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Peter Fox",
"email": "peter.fox@ylsideas.co",
"role": "Developer"
}
],
"description": "A Laravel package for handling feature flags",
"homepage": "https://github.com/ylsideas/feature-flags",
"keywords": [
"feature-flags",
"ylsideas"
],
"support": {
"issues": "https://github.com/ylsideas/feature-flags/issues",
"source": "https://github.com/ylsideas/feature-flags/tree/v2.4.2"
},
"funding": [
{
"url": "https://github.com/peterfox",
"type": "github"
}
],
"time": "2023-12-01T18:56:48+00:00"
},
{
"name": "zbateson/mail-mime-parser",
"version": "2.4.0",