From db9632bcaf8f5f8ab91a6dd31e7738feb776c5af Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Sat, 23 Mar 2024 20:42:56 +0300 Subject: [PATCH] fixes --- README.md | 2 + composer.json | 6 +- composer.lock | 625 ++++++------------ .../Clusters/System/Resources/TagResource.php | 3 +- .../Schemata/Company/SettingsForm.php | 13 +- src/Middleware/SetLang.php | 2 +- src/TartarusServiceProvider.php | 4 + 7 files changed, 216 insertions(+), 439 deletions(-) diff --git a/README.md b/README.md index cf2b833..5d3e43a 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@

Lara-zeus Tartarus, simple multi tenants with panels

+## ⚠️️️ ⚠️️️ Not ready for production yet! ⚠️️️ ⚠️️️ +

[![Latest Version on Packagist](https://img.shields.io/packagist/v/lara-zeus/tartarus.svg?style=flat-square)](https://packagist.org/packages/lara-zeus/tartarus) diff --git a/composer.json b/composer.json index d64e6fa..a3c29a4 100644 --- a/composer.json +++ b/composer.json @@ -27,13 +27,15 @@ ], "require": { "php": "^8.1", + "awcodes/preset-color-picker": "^0.1.0", "calebporzio/sushi": "^2.4", "filament/filament": "^3.2", - "ryangjchandler/blade-tabler-icons": "^2.3", "filament/spatie-laravel-translatable-plugin": "^3.2", - "lara-zeus/erebus": "^1.0", "lara-zeus/chaos": "^1.0", + "lara-zeus/erebus": "^1.0", "rickdbcn/filament-email": "^1.0", + "ryangjchandler/blade-tabler-icons": "^2.3", + "spatie/laravel-package-tools": "^1.16", "spatie/laravel-tags": "^4.6", "stechstudio/filament-impersonate": "^3.7" }, diff --git a/composer.lock b/composer.lock index 0ede617..c4c6426 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6242c1e0161201a3f83b7cd577bc9871", + "content-hash": "70e3bb9abff2c73fe9751c9c6f5e11dc", "packages": [ { "name": "anourvalar/eloquent-serialize", - "version": "1.2.21", + "version": "1.2.22", "source": { "type": "git", "url": "https://github.com/AnourValar/eloquent-serialize.git", - "reference": "39766b21c8de0dbbff8a9368c2579502fd1d248e" + "reference": "6e91093c10940859c4b0549b6a90f18d8db45998" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/AnourValar/eloquent-serialize/zipball/39766b21c8de0dbbff8a9368c2579502fd1d248e", - "reference": "39766b21c8de0dbbff8a9368c2579502fd1d248e", + "url": "https://api.github.com/repos/AnourValar/eloquent-serialize/zipball/6e91093c10940859c4b0549b6a90f18d8db45998", + "reference": "6e91093c10940859c4b0549b6a90f18d8db45998", "shasum": "" }, "require": { @@ -68,9 +68,82 @@ ], "support": { "issues": "https://github.com/AnourValar/eloquent-serialize/issues", - "source": "https://github.com/AnourValar/eloquent-serialize/tree/1.2.21" + "source": "https://github.com/AnourValar/eloquent-serialize/tree/1.2.22" }, - "time": "2024-03-15T14:33:22+00:00" + "time": "2024-03-22T12:56:46+00:00" + }, + { + "name": "awcodes/preset-color-picker", + "version": "v0.1.0", + "source": { + "type": "git", + "url": "https://github.com/awcodes/preset-color-picker.git", + "reference": "4c1c0903052ebeb2a867977f3914bddb417379a5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/awcodes/preset-color-picker/zipball/4c1c0903052ebeb2a867977f3914bddb417379a5", + "reference": "4c1c0903052ebeb2a867977f3914bddb417379a5", + "shasum": "" + }, + "require": { + "filament/forms": "^3.0", + "php": "^8.1", + "spatie/laravel-package-tools": "^1.15.0" + }, + "require-dev": { + "laravel/pint": "^1.0", + "nunomaduro/collision": "^7.9|^8.1", + "orchestra/testbench": "^8.0|^9.0", + "pestphp/pest": "^2.1", + "pestphp/pest-plugin-arch": "^2.0", + "pestphp/pest-plugin-laravel": "^2.0", + "spatie/laravel-ray": "^1.26" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Awcodes\\PresetColorPicker\\PresetColorPickerServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Awcodes\\PresetColorPicker\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Adam Weston", + "email": "awcodes1@gmail.com", + "role": "Developer" + } + ], + "description": "A color picker field for Filament Forms that uses preset color palettes.", + "homepage": "https://github.com/awcodes/preset-color-picker", + "keywords": [ + "awcodes", + "color-picker", + "filament", + "plugin", + "preset-color-picker" + ], + "support": { + "issues": "https://github.com/awcodes/preset-color-picker/issues", + "source": "https://github.com/awcodes/preset-color-picker" + }, + "funding": [ + { + "url": "https://github.com/awcodes", + "type": "github" + } + ], + "time": "2024-03-22T19:17:08+00:00" }, { "name": "bacon/bacon-qr-code", @@ -1325,16 +1398,16 @@ }, { "name": "filament/actions", - "version": "v3.2.56", + "version": "v3.2.58", "source": { "type": "git", "url": "https://github.com/filamentphp/actions.git", - "reference": "5c5fbb3366f320457545ff84a0e0308009e579c2" + "reference": "8523fabf8d48301d80023d3955bc2d21e52b1e2f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/actions/zipball/5c5fbb3366f320457545ff84a0e0308009e579c2", - "reference": "5c5fbb3366f320457545ff84a0e0308009e579c2", + "url": "https://api.github.com/repos/filamentphp/actions/zipball/8523fabf8d48301d80023d3955bc2d21e52b1e2f", + "reference": "8523fabf8d48301d80023d3955bc2d21e52b1e2f", "shasum": "" }, "require": { @@ -1374,20 +1447,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-03-19T00:27:45+00:00" + "time": "2024-03-21T22:43:16+00:00" }, { "name": "filament/filament", - "version": "v3.2.56", + "version": "v3.2.58", "source": { "type": "git", "url": "https://github.com/filamentphp/panels.git", - "reference": "728c31d128b9cbb7d28a5ba19a63d39730064cae" + "reference": "88d5003772a91b0da0decb330524cb3e3ca04f2f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/panels/zipball/728c31d128b9cbb7d28a5ba19a63d39730064cae", - "reference": "728c31d128b9cbb7d28a5ba19a63d39730064cae", + "url": "https://api.github.com/repos/filamentphp/panels/zipball/88d5003772a91b0da0decb330524cb3e3ca04f2f", + "reference": "88d5003772a91b0da0decb330524cb3e3ca04f2f", "shasum": "" }, "require": { @@ -1439,20 +1512,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-03-19T15:24:45+00:00" + "time": "2024-03-21T22:43:18+00:00" }, { "name": "filament/forms", - "version": "v3.2.56", + "version": "v3.2.58", "source": { "type": "git", "url": "https://github.com/filamentphp/forms.git", - "reference": "75601e381da9c2b5cbd85f1fa9aa26778d564d4d" + "reference": "9b69ecfa3294a46908fb0428144254d9f6aefd1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/forms/zipball/75601e381da9c2b5cbd85f1fa9aa26778d564d4d", - "reference": "75601e381da9c2b5cbd85f1fa9aa26778d564d4d", + "url": "https://api.github.com/repos/filamentphp/forms/zipball/9b69ecfa3294a46908fb0428144254d9f6aefd1d", + "reference": "9b69ecfa3294a46908fb0428144254d9f6aefd1d", "shasum": "" }, "require": { @@ -1495,20 +1568,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-03-19T00:27:54+00:00" + "time": "2024-03-21T22:43:17+00:00" }, { "name": "filament/infolists", - "version": "v3.2.56", + "version": "v3.2.58", "source": { "type": "git", "url": "https://github.com/filamentphp/infolists.git", - "reference": "72217e2ae055bfea51feb3351e00f269b188796d" + "reference": "63e91468157ce0734a09b1db0affad579262bdfe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/infolists/zipball/72217e2ae055bfea51feb3351e00f269b188796d", - "reference": "72217e2ae055bfea51feb3351e00f269b188796d", + "url": "https://api.github.com/repos/filamentphp/infolists/zipball/63e91468157ce0734a09b1db0affad579262bdfe", + "reference": "63e91468157ce0734a09b1db0affad579262bdfe", "shasum": "" }, "require": { @@ -1546,11 +1619,11 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-03-14T10:54:02+00:00" + "time": "2024-03-21T22:43:11+00:00" }, { "name": "filament/notifications", - "version": "v3.2.56", + "version": "v3.2.58", "source": { "type": "git", "url": "https://github.com/filamentphp/notifications.git", @@ -1602,7 +1675,7 @@ }, { "name": "filament/spatie-laravel-translatable-plugin", - "version": "v3.2.56", + "version": "v3.2.58", "source": { "type": "git", "url": "https://github.com/filamentphp/spatie-laravel-translatable-plugin.git", @@ -1647,16 +1720,16 @@ }, { "name": "filament/support", - "version": "v3.2.56", + "version": "v3.2.58", "source": { "type": "git", "url": "https://github.com/filamentphp/support.git", - "reference": "f10144d4758d7873ee8d471530a4455a1105ca53" + "reference": "1bb8f468624b0b06f20bc5da858cdb5b6a97d53f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/support/zipball/f10144d4758d7873ee8d471530a4455a1105ca53", - "reference": "f10144d4758d7873ee8d471530a4455a1105ca53", + "url": "https://api.github.com/repos/filamentphp/support/zipball/1bb8f468624b0b06f20bc5da858cdb5b6a97d53f", + "reference": "1bb8f468624b0b06f20bc5da858cdb5b6a97d53f", "shasum": "" }, "require": { @@ -1672,7 +1745,7 @@ "spatie/color": "^1.5", "spatie/invade": "^1.0|^2.0", "spatie/laravel-package-tools": "^1.9", - "symfony/html-sanitizer": "^6.1" + "symfony/html-sanitizer": "^6.1|^7.0" }, "type": "library", "extra": { @@ -1700,20 +1773,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-03-14T14:14:06+00:00" + "time": "2024-03-21T22:43:36+00:00" }, { "name": "filament/tables", - "version": "v3.2.56", + "version": "v3.2.58", "source": { "type": "git", "url": "https://github.com/filamentphp/tables.git", - "reference": "5abd8e1baa5485aa4da499d632be7e2424ad6d4c" + "reference": "ffbb066f0f123b24512e104e97f37acb817909f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/tables/zipball/5abd8e1baa5485aa4da499d632be7e2424ad6d4c", - "reference": "5abd8e1baa5485aa4da499d632be7e2424ad6d4c", + "url": "https://api.github.com/repos/filamentphp/tables/zipball/ffbb066f0f123b24512e104e97f37acb817909f7", + "reference": "ffbb066f0f123b24512e104e97f37acb817909f7", "shasum": "" }, "require": { @@ -1753,11 +1826,11 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-03-19T13:12:04+00:00" + "time": "2024-03-21T22:43:39+00:00" }, { "name": "filament/widgets", - "version": "v3.2.56", + "version": "v3.2.58", "source": { "type": "git", "url": "https://github.com/filamentphp/widgets.git", @@ -2096,16 +2169,16 @@ }, { "name": "kirschbaum-development/eloquent-power-joins", - "version": "3.5.1", + "version": "3.5.2", "source": { "type": "git", "url": "https://github.com/kirschbaum-development/eloquent-power-joins.git", - "reference": "571f09c4b23c349cb1a5db8bb88af291ed30389c" + "reference": "2fae3aca9eefd4591603a7e53406ab9f56b69fad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/571f09c4b23c349cb1a5db8bb88af291ed30389c", - "reference": "571f09c4b23c349cb1a5db8bb88af291ed30389c", + "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/2fae3aca9eefd4591603a7e53406ab9f56b69fad", + "reference": "2fae3aca9eefd4591603a7e53406ab9f56b69fad", "shasum": "" }, "require": { @@ -2152,9 +2225,9 @@ ], "support": { "issues": "https://github.com/kirschbaum-development/eloquent-power-joins/issues", - "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/3.5.1" + "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/3.5.2" }, - "time": "2024-03-19T22:45:47+00:00" + "time": "2024-03-20T10:23:27+00:00" }, { "name": "lab404/laravel-impersonate", @@ -2293,16 +2366,16 @@ }, { "name": "lara-zeus/erebus", - "version": "v1.0.2", + "version": "v1.0.4", "source": { "type": "git", "url": "https://github.com/lara-zeus/erebus.git", - "reference": "6b0c1fad3370403ea0c69e17057abaf3b5d73faa" + "reference": "46eefd8883735fa29e6c076b4f67afaa314b18de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lara-zeus/erebus/zipball/6b0c1fad3370403ea0c69e17057abaf3b5d73faa", - "reference": "6b0c1fad3370403ea0c69e17057abaf3b5d73faa", + "url": "https://api.github.com/repos/lara-zeus/erebus/zipball/46eefd8883735fa29e6c076b4f67afaa314b18de", + "reference": "46eefd8883735fa29e6c076b4f67afaa314b18de", "shasum": "" }, "require": { @@ -2316,8 +2389,7 @@ "php": "^8.1", "spatie/laravel-activitylog": "^4.7", "spatie/laravel-permission": "^6.4", - "stechstudio/filament-impersonate": "^3.6", - "z3d0x/filament-logger": "^0.7.0" + "stechstudio/filament-impersonate": "^3.6" }, "require-dev": { "larastan/larastan": "^2.2", @@ -2379,93 +2451,7 @@ "type": "github" } ], - "time": "2024-03-20T01:04:49+00:00" - }, - { - "name": "lara-zeus/pontus", - "version": "v1.0.1", - "source": { - "type": "git", - "url": "https://github.com/lara-zeus/pontus.git", - "reference": "84e5fe4ed70e2fa10603b5e8939ad4cb53589523" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/lara-zeus/pontus/zipball/84e5fe4ed70e2fa10603b5e8939ad4cb53589523", - "reference": "84e5fe4ed70e2fa10603b5e8939ad4cb53589523", - "shasum": "" - }, - "require": { - "calebporzio/sushi": "^2.4", - "ext-json": "*", - "ext-pdo_sqlite": "*", - "ext-sqlite3": "*", - "filament/filament": "^3.2", - "php": "^8.1", - "rinvex/laravel-subscriptions": "dev-new" - }, - "require-dev": { - "larastan/larastan": "^2.2", - "laravel/pint": "^1.0", - "nunomaduro/collision": "^7.0", - "orchestra/testbench": "^8.0", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.10", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-phpunit": "^1.0" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "LaraZeus\\Pontus\\PontusServiceProvider" - ], - "aliases": { - "Pontus": "LaraZeus\\Pontus\\Facades\\Pontus" - } - } - }, - "autoload": { - "psr-4": { - "LaraZeus\\Pontus\\": "src", - "LaraZeus\\Pontus\\Database\\Factories\\": "database/factories/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "php coder", - "email": "info@larazeus.com", - "role": "Owner" - } - ], - "description": "subscriptions, plans, invoices, and features", - "homepage": "https://larazeus.com/pontus", - "keywords": [ - "features", - "filamentphp", - "invoices", - "lara-zeus", - "laravel", - "manager", - "plans", - "pontus", - "subscriptions" - ], - "support": { - "issues": "https://github.com/lara-zeus/pontus/issues", - "source": "https://github.com/lara-zeus/pontus" - }, - "funding": [ - { - "url": "https://github.com/atmonshi", - "type": "github" - } - ], - "time": "2024-03-18T22:37:33+00:00" + "time": "2024-03-20T23:40:25+00:00" }, { "name": "lara-zeus/popover", @@ -2553,16 +2539,16 @@ }, { "name": "laravel/framework", - "version": "v10.48.3", + "version": "v10.48.4", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "5791c052b41c6b593556adc687076bfbdd13c501" + "reference": "7e0701bf59cb76a51f7c1f7bea51c0c0c29c0b72" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/5791c052b41c6b593556adc687076bfbdd13c501", - "reference": "5791c052b41c6b593556adc687076bfbdd13c501", + "url": "https://api.github.com/repos/laravel/framework/zipball/7e0701bf59cb76a51f7c1f7bea51c0c0c29c0b72", + "reference": "7e0701bf59cb76a51f7c1f7bea51c0c0c29c0b72", "shasum": "" }, "require": { @@ -2667,7 +2653,7 @@ "league/flysystem-sftp-v3": "^3.0", "mockery/mockery": "^1.5.1", "nyholm/psr7": "^1.2", - "orchestra/testbench-core": "^8.18", + "orchestra/testbench-core": "^8.23.4", "pda/pheanstalk": "^4.0", "phpstan/phpstan": "^1.4.7", "phpunit/phpunit": "^10.0.7", @@ -2756,7 +2742,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-03-15T10:17:07+00:00" + "time": "2024-03-21T13:36:36+00:00" }, { "name": "laravel/prompts", @@ -3359,16 +3345,16 @@ }, { "name": "league/uri", - "version": "7.4.0", + "version": "7.4.1", "source": { "type": "git", "url": "https://github.com/thephpleague/uri.git", - "reference": "bf414ba956d902f5d98bf9385fcf63954f09dce5" + "reference": "bedb6e55eff0c933668addaa7efa1e1f2c417cc4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/uri/zipball/bf414ba956d902f5d98bf9385fcf63954f09dce5", - "reference": "bf414ba956d902f5d98bf9385fcf63954f09dce5", + "url": "https://api.github.com/repos/thephpleague/uri/zipball/bedb6e55eff0c933668addaa7efa1e1f2c417cc4", + "reference": "bedb6e55eff0c933668addaa7efa1e1f2c417cc4", "shasum": "" }, "require": { @@ -3437,7 +3423,7 @@ "docs": "https://uri.thephpleague.com", "forum": "https://thephpleague.slack.com", "issues": "https://github.com/thephpleague/uri-src/issues", - "source": "https://github.com/thephpleague/uri/tree/7.4.0" + "source": "https://github.com/thephpleague/uri/tree/7.4.1" }, "funding": [ { @@ -3445,20 +3431,20 @@ "type": "github" } ], - "time": "2023-12-01T06:24:25+00:00" + "time": "2024-03-23T07:42:40+00:00" }, { "name": "league/uri-interfaces", - "version": "7.4.0", + "version": "7.4.1", "source": { "type": "git", "url": "https://github.com/thephpleague/uri-interfaces.git", - "reference": "bd8c487ec236930f7bbc42b8d374fa882fbba0f3" + "reference": "8d43ef5c841032c87e2de015972c06f3865ef718" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/bd8c487ec236930f7bbc42b8d374fa882fbba0f3", - "reference": "bd8c487ec236930f7bbc42b8d374fa882fbba0f3", + "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/8d43ef5c841032c87e2de015972c06f3865ef718", + "reference": "8d43ef5c841032c87e2de015972c06f3865ef718", "shasum": "" }, "require": { @@ -3521,7 +3507,7 @@ "docs": "https://uri.thephpleague.com", "forum": "https://thephpleague.slack.com", "issues": "https://github.com/thephpleague/uri-src/issues", - "source": "https://github.com/thephpleague/uri-interfaces/tree/7.4.0" + "source": "https://github.com/thephpleague/uri-interfaces/tree/7.4.1" }, "funding": [ { @@ -3529,7 +3515,7 @@ "type": "github" } ], - "time": "2023-11-24T15:40:42+00:00" + "time": "2024-03-23T07:42:40+00:00" }, { "name": "livewire/livewire", @@ -5063,96 +5049,6 @@ }, "time": "2024-02-28T14:57:11+00:00" }, - { - "name": "rinvex/laravel-subscriptions", - "version": "dev-new", - "source": { - "type": "git", - "url": "https://github.com/still-code/laravel-subscriptions.git", - "reference": "72724ff0502c1ff8338b73fb778d05ced766a1be" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/still-code/laravel-subscriptions/zipball/72724ff0502c1ff8338b73fb778d05ced766a1be", - "reference": "72724ff0502c1ff8338b73fb778d05ced766a1be", - "shasum": "" - }, - "require": { - "illuminate/console": "^8.0.0 | ^9.0.0 | ^10.0.0 | ^11.0.0", - "illuminate/database": "^8.0.0 | ^9.0.0 | ^10.0.0 | ^11.0.0", - "illuminate/support": "^8.0.0 | ^9.0.0 | ^10.0.0 | ^11.0.0", - "php": "^8.1", - "spatie/eloquent-sortable": "^4.0", - "spatie/laravel-sluggable": "^3.4", - "spatie/laravel-translatable": "^6.4" - }, - "require-dev": { - "codedungeon/phpunit-result-printer": "^0.31.0", - "illuminate/container": "^8.0.0 | ^9.0.0", - "phpunit/phpunit": "^9.5.0" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Rinvex\\Subscriptions\\Providers\\SubscriptionsServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Rinvex\\Subscriptions\\": "src" - } - }, - "autoload-dev": { - "psr-4": { - "Rinvex\\Subscriptions\\Tests\\": "tests" - } - }, - "scripts": { - "test": [ - "vendor/bin/phpunit" - ] - }, - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Rinvex LLC", - "homepage": "https://rinvex.com", - "email": "help@rinvex.com" - }, - { - "name": "Abdelrahman Omran", - "homepage": "https://omranic.com", - "email": "me@omranic.com", - "role": "Project Lead" - }, - { - "name": "The Generous Laravel Community", - "homepage": "https://github.com/rinvex/laravel-subscriptions/contributors" - } - ], - "description": "Rinvex Subscriptions is a flexible plans and subscription management system for Laravel, with the required tools to run your SAAS like services efficiently. It's simple architecture, accompanied by powerful underlying to afford solid platform for your business.", - "homepage": "https://rinvex.com", - "keywords": [ - "database", - "feature", - "laravel", - "plan", - "recurring", - "subscription", - "value" - ], - "support": { - "email": "help@rinvex.com", - "issues": "https://github.com/rinvex/laravel-subscriptions/issues", - "source": "https://github.com/rinvex/laravel-subscriptions", - "docs": "https://github.com/rinvex/laravel-subscriptions/blob/master/README.md" - }, - "time": "2024-02-28T12:22:00+00:00" - }, { "name": "ryangjchandler/blade-capture-directive", "version": "v1.0.0", @@ -5578,16 +5474,16 @@ }, { "name": "spatie/laravel-package-tools", - "version": "1.16.3", + "version": "1.16.4", "source": { "type": "git", "url": "https://github.com/spatie/laravel-package-tools.git", - "reference": "59db18c2e20d49a0b6d447bb1c654f6c123beb9e" + "reference": "ddf678e78d7f8b17e5cdd99c0c3413a4a6592e53" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/59db18c2e20d49a0b6d447bb1c654f6c123beb9e", - "reference": "59db18c2e20d49a0b6d447bb1c654f6c123beb9e", + "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/ddf678e78d7f8b17e5cdd99c0c3413a4a6592e53", + "reference": "ddf678e78d7f8b17e5cdd99c0c3413a4a6592e53", "shasum": "" }, "require": { @@ -5626,7 +5522,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-package-tools/issues", - "source": "https://github.com/spatie/laravel-package-tools/tree/1.16.3" + "source": "https://github.com/spatie/laravel-package-tools/tree/1.16.4" }, "funding": [ { @@ -5634,7 +5530,7 @@ "type": "github" } ], - "time": "2024-03-07T07:35:57+00:00" + "time": "2024-03-20T07:29:11+00:00" }, { "name": "spatie/laravel-permission", @@ -5718,65 +5614,6 @@ ], "time": "2024-02-28T08:11:20+00:00" }, - { - "name": "spatie/laravel-sluggable", - "version": "3.6.0", - "source": { - "type": "git", - "url": "https://github.com/spatie/laravel-sluggable.git", - "reference": "a44afe6f317959bcfdadcec3148486859fd5c1f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-sluggable/zipball/a44afe6f317959bcfdadcec3148486859fd5c1f5", - "reference": "a44afe6f317959bcfdadcec3148486859fd5c1f5", - "shasum": "" - }, - "require": { - "illuminate/database": "^8.0|^9.0|^10.0|^11.0", - "illuminate/support": "^8.0|^9.0|^10.0|^11.0", - "php": "^8.0" - }, - "require-dev": { - "orchestra/testbench": "^6.23|^7.0|^8.0|^9.0", - "pestphp/pest": "^1.20|^2.0", - "spatie/laravel-translatable": "^5.0|^6.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Spatie\\Sluggable\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Freek Van der Herten", - "email": "freek@spatie.be", - "homepage": "https://spatie.be", - "role": "Developer" - } - ], - "description": "Generate slugs when saving Eloquent models", - "homepage": "https://github.com/spatie/laravel-sluggable", - "keywords": [ - "laravel-sluggable", - "spatie" - ], - "support": { - "source": "https://github.com/spatie/laravel-sluggable/tree/3.6.0" - }, - "funding": [ - { - "url": "https://github.com/spatie", - "type": "github" - } - ], - "time": "2024-02-26T08:33:29+00:00" - }, { "name": "spatie/laravel-tags", "version": "4.6.1", @@ -6494,23 +6331,23 @@ }, { "name": "symfony/html-sanitizer", - "version": "v6.4.4", + "version": "v7.0.4", "source": { "type": "git", "url": "https://github.com/symfony/html-sanitizer.git", - "reference": "83e1dc8b49345e078cfa21bd4c563dfa99c5ed63" + "reference": "a8543ad56bc5250378ca44bb3988516fcb073c5d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/html-sanitizer/zipball/83e1dc8b49345e078cfa21bd4c563dfa99c5ed63", - "reference": "83e1dc8b49345e078cfa21bd4c563dfa99c5ed63", + "url": "https://api.github.com/repos/symfony/html-sanitizer/zipball/a8543ad56bc5250378ca44bb3988516fcb073c5d", + "reference": "a8543ad56bc5250378ca44bb3988516fcb073c5d", "shasum": "" }, "require": { "ext-dom": "*", "league/uri": "^6.5|^7.0", "masterminds/html5": "^2.7.2", - "php": ">=8.1" + "php": ">=8.2" }, "type": "library", "autoload": { @@ -6543,7 +6380,7 @@ "sanitizer" ], "support": { - "source": "https://github.com/symfony/html-sanitizer/tree/v6.4.4" + "source": "https://github.com/symfony/html-sanitizer/tree/v7.0.4" }, "funding": [ { @@ -6559,7 +6396,7 @@ "type": "tidelift" } ], - "time": "2024-02-13T16:25:19+00:00" + "time": "2024-02-15T11:33:06+00:00" }, { "name": "symfony/http-foundation", @@ -8538,80 +8375,6 @@ "source": "https://github.com/webmozarts/assert/tree/1.11.0" }, "time": "2022-06-03T18:03:27+00:00" - }, - { - "name": "z3d0x/filament-logger", - "version": "v0.7.0", - "source": { - "type": "git", - "url": "https://github.com/Z3d0X/filament-logger.git", - "reference": "b98c5e3877eb519d24e75843922407d327ecc1a8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Z3d0X/filament-logger/zipball/b98c5e3877eb519d24e75843922407d327ecc1a8", - "reference": "b98c5e3877eb519d24e75843922407d327ecc1a8", - "shasum": "" - }, - "require": { - "filament/filament": "^3.0", - "illuminate/contracts": "^8.0 | ^9.0 | ^10.0 | ^11.0", - "php": "^8.0 | ^8.1", - "spatie/laravel-activitylog": "^4.5", - "spatie/laravel-package-tools": "^1.13.5" - }, - "require-dev": { - "nunomaduro/collision": "^6.0 | ^8.0", - "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^7.0 | ^9.0", - "pestphp/pest": "^1.21 | ^2.34", - "pestphp/pest-plugin-laravel": "^1.1 | ^2.3", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.5 | ^10.5", - "spatie/laravel-ray": "^1.26" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Z3d0X\\FilamentLogger\\FilamentLoggerServiceProvider" - ], - "aliases": { - "FilamentLogger": "Z3d0X\\FilamentLogger\\Facades\\FilamentLogger" - } - } - }, - "autoload": { - "psr-4": { - "Z3d0X\\FilamentLogger\\": "src", - "Z3d0X\\FilamentLogger\\Database\\Factories\\": "database/factories" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ziyaan Hassan", - "email": "ziyaan2010@gmail.com", - "role": "Developer" - } - ], - "description": "Activity logger for filament", - "homepage": "https://github.com/z3d0x/filament-logger", - "keywords": [ - "Z3d0X", - "filament-logger", - "laravel" - ], - "support": { - "issues": "https://github.com/Z3d0X/filament-logger/issues", - "source": "https://github.com/Z3d0X/filament-logger/tree/v0.7.0" - }, - "time": "2024-03-12T17:04:40+00:00" } ], "packages-dev": [ @@ -9233,16 +8996,16 @@ }, { "name": "mockery/mockery", - "version": "1.6.10", + "version": "1.6.11", "source": { "type": "git", "url": "https://github.com/mockery/mockery.git", - "reference": "47065d1be1fa05def58dc14c03cf831d3884ef0b" + "reference": "81a161d0b135df89951abd52296adf97deb0723d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mockery/mockery/zipball/47065d1be1fa05def58dc14c03cf831d3884ef0b", - "reference": "47065d1be1fa05def58dc14c03cf831d3884ef0b", + "url": "https://api.github.com/repos/mockery/mockery/zipball/81a161d0b135df89951abd52296adf97deb0723d", + "reference": "81a161d0b135df89951abd52296adf97deb0723d", "shasum": "" }, "require": { @@ -9312,7 +9075,7 @@ "security": "https://github.com/mockery/mockery/security/advisories", "source": "https://github.com/mockery/mockery" }, - "time": "2024-03-19T16:15:45+00:00" + "time": "2024-03-21T18:34:15+00:00" }, { "name": "myclabs/deep-copy", @@ -9529,25 +9292,25 @@ }, { "name": "orchestra/canvas", - "version": "v8.11.7", + "version": "v8.11.8", "source": { "type": "git", "url": "https://github.com/orchestral/canvas.git", - "reference": "e4a0157f522222725f1559bde0da1091a91542fb" + "reference": "31b1f338fb9d2f3c97ccbc62b27d3e5bf86a02e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/canvas/zipball/e4a0157f522222725f1559bde0da1091a91542fb", - "reference": "e4a0157f522222725f1559bde0da1091a91542fb", + "url": "https://api.github.com/repos/orchestral/canvas/zipball/31b1f338fb9d2f3c97ccbc62b27d3e5bf86a02e5", + "reference": "31b1f338fb9d2f3c97ccbc62b27d3e5bf86a02e5", "shasum": "" }, "require": { "composer-runtime-api": "^2.2", "composer/semver": "^3.0", - "illuminate/console": "^10.39", - "illuminate/database": "^10.39", - "illuminate/filesystem": "^10.39", - "illuminate/support": "^10.39", + "illuminate/console": "^10.48.4", + "illuminate/database": "^10.48.4", + "illuminate/filesystem": "^10.48.4", + "illuminate/support": "^10.48.4", "orchestra/canvas-core": "^8.10.2", "orchestra/testbench-core": "^8.19", "php": "^8.1", @@ -9555,12 +9318,12 @@ "symfony/yaml": "^6.2" }, "require-dev": { - "laravel/framework": "^10.39", + "laravel/framework": "^10.48.4", "laravel/pint": "^1.6", "mockery/mockery": "^1.5.1", - "phpstan/phpstan": "^1.10.5", - "phpunit/phpunit": "^10.1", - "spatie/laravel-ray": "^1.32.4" + "phpstan/phpstan": "^1.10.56", + "phpunit/phpunit": "^10.5", + "spatie/laravel-ray": "^1.33" }, "bin": [ "canvas" @@ -9598,9 +9361,9 @@ "description": "Code Generators for Laravel Applications and Packages", "support": { "issues": "https://github.com/orchestral/canvas/issues", - "source": "https://github.com/orchestral/canvas/tree/v8.11.7" + "source": "https://github.com/orchestral/canvas/tree/v8.11.8" }, - "time": "2024-02-07T10:29:23+00:00" + "time": "2024-03-21T14:41:18+00:00" }, { "name": "orchestra/canvas-core", @@ -10143,16 +9906,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.63", + "version": "1.10.65", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "ad12836d9ca227301f5fb9960979574ed8628339" + "reference": "3c657d057a0b7ecae19cb12db446bbc99d8839c6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ad12836d9ca227301f5fb9960979574ed8628339", - "reference": "ad12836d9ca227301f5fb9960979574ed8628339", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/3c657d057a0b7ecae19cb12db446bbc99d8839c6", + "reference": "3c657d057a0b7ecae19cb12db446bbc99d8839c6", "shasum": "" }, "require": { @@ -10201,7 +9964,7 @@ "type": "tidelift" } ], - "time": "2024-03-18T16:53:53+00:00" + "time": "2024-03-23T10:30:26+00:00" }, { "name": "phpstan/phpstan-deprecation-rules", @@ -10626,16 +10389,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.13", + "version": "10.5.15", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "20a63fc1c6db29b15da3bd02d4b6cf59900088a7" + "reference": "86376e05e8745ed81d88232ff92fee868247b07b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/20a63fc1c6db29b15da3bd02d4b6cf59900088a7", - "reference": "20a63fc1c6db29b15da3bd02d4b6cf59900088a7", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/86376e05e8745ed81d88232ff92fee868247b07b", + "reference": "86376e05e8745ed81d88232ff92fee868247b07b", "shasum": "" }, "require": { @@ -10707,7 +10470,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.13" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.15" }, "funding": [ { @@ -10723,7 +10486,7 @@ "type": "tidelift" } ], - "time": "2024-03-12T15:37:41+00:00" + "time": "2024-03-22T04:17:47+00:00" }, { "name": "pimple/pimple", @@ -11329,16 +11092,16 @@ }, { "name": "sebastian/environment", - "version": "6.0.1", + "version": "6.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "43c751b41d74f96cbbd4e07b7aec9675651e2951" + "reference": "8074dbcd93529b357029f5cc5058fd3e43666984" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/43c751b41d74f96cbbd4e07b7aec9675651e2951", - "reference": "43c751b41d74f96cbbd4e07b7aec9675651e2951", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/8074dbcd93529b357029f5cc5058fd3e43666984", + "reference": "8074dbcd93529b357029f5cc5058fd3e43666984", "shasum": "" }, "require": { @@ -11353,7 +11116,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "6.1-dev" } }, "autoload": { @@ -11381,7 +11144,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/6.0.1" + "source": "https://github.com/sebastianbergmann/environment/tree/6.1.0" }, "funding": [ { @@ -11389,7 +11152,7 @@ "type": "github" } ], - "time": "2023-04-11T05:39:26+00:00" + "time": "2024-03-23T08:47:14+00:00" }, { "name": "sebastian/exporter", diff --git a/src/Filament/Clusters/System/Resources/TagResource.php b/src/Filament/Clusters/System/Resources/TagResource.php index b03ebfb..50deb63 100644 --- a/src/Filament/Clusters/System/Resources/TagResource.php +++ b/src/Filament/Clusters/System/Resources/TagResource.php @@ -43,9 +43,10 @@ public static function form(Form $form): Form ->label(__(static::langFile() . '.name')) ->live(onBlur: true) ->afterStateUpdated(function (Set $set, $state) { - $set('slug.ar', Str::slug($state)); + $set('slug.' . app()->getLocale(), Str::slug($state[app()->getLocale()])); }), MultiLang::make('slug') + ->live(onBlur: true) ->label(__(static::langFile() . '.slug')) ->unique(ignorable: fn (?Model $record): ?Model => $record) ->required() diff --git a/src/Filament/Schemata/Company/SettingsForm.php b/src/Filament/Schemata/Company/SettingsForm.php index 00fa248..170409a 100644 --- a/src/Filament/Schemata/Company/SettingsForm.php +++ b/src/Filament/Schemata/Company/SettingsForm.php @@ -2,9 +2,10 @@ namespace LaraZeus\Tartarus\Filament\Schemata\Company; +use Awcodes\PresetColorPicker\PresetColorPicker; use Filament\Forms\Components\Section; use Filament\Forms\Components\TextInput; -use Filament\Forms\Components\ViewField; +use Filament\Support\Facades\FilamentColor; use LaraZeus\Chaos\Forms\Components\MultiLang; class SettingsForm @@ -22,9 +23,13 @@ public static function mainSetting(): array ->extraAttributes(['style' => 'direction: ltr;']) ->prefixIcon('tabler-link') ->label(__('Slug')), - ViewField::make('primary_color') - ->live() - ->view('zeus-tartarus::fields.color-picker'), + + PresetColorPicker::make('primary_color') + ->colors( + collect(FilamentColor::getColors()) + ->forget(['secondary', 'slate', 'zinc', 'neutral', 'stone']) + ->toArray() + ), ]), ]; } diff --git a/src/Middleware/SetLang.php b/src/Middleware/SetLang.php index a423bba..925a27b 100644 --- a/src/Middleware/SetLang.php +++ b/src/Middleware/SetLang.php @@ -20,7 +20,7 @@ public function handle(Request $request, Closure $next): Response } } - app()->setLocale(session('current_lang', 'ar')); + app()->setLocale(session('current_lang', config('app.locale'))); return $next($request); }); diff --git a/src/TartarusServiceProvider.php b/src/TartarusServiceProvider.php index aeec5d9..d9e0550 100644 --- a/src/TartarusServiceProvider.php +++ b/src/TartarusServiceProvider.php @@ -3,7 +3,9 @@ namespace LaraZeus\Tartarus; use LaraZeus\Tartarus\Console\InstallCommand; +use LaraZeus\Tartarus\Filament\Pages\Deleter; use LaraZeus\Tartarus\Filament\Pages\RegisterCompany; +use LaraZeus\Tartarus\Filament\Pages\Settings; use Livewire\Livewire; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; @@ -28,6 +30,8 @@ public function configurePackage(Package $package): void public function packageBooted(): void { Livewire::component('register-company', RegisterCompany::class); + Livewire::component('settings', Settings::class); + Livewire::component('deleter', Deleter::class); } protected function getMigrations(): array