update laravel to v12 and filament to v3.3

This commit is contained in:
xiaomlove
2025-05-03 02:07:59 +07:00
parent 578ec3a6fc
commit 50bbbf16b3
16 changed files with 1124 additions and 1507 deletions
+8 -10
View File
@@ -19,7 +19,7 @@
"files": [] "files": []
}, },
"require": { "require": {
"php": "^8.2", "php": ">=8.2 <8.5",
"ext-bcmath": "*", "ext-bcmath": "*",
"ext-curl": "*", "ext-curl": "*",
"ext-gd": "*", "ext-gd": "*",
@@ -36,13 +36,13 @@
"ext-zip": "*", "ext-zip": "*",
"calebporzio/sushi": "^2.5", "calebporzio/sushi": "^2.5",
"elasticsearch/elasticsearch": "^7.16", "elasticsearch/elasticsearch": "^7.16",
"filament/filament": "^3.2", "filament/filament": "^3.3",
"flowframe/laravel-trend": "^0.3", "flowframe/laravel-trend": "^0.4",
"geoip2/geoip2": "~2.0", "geoip2/geoip2": "~2.0",
"google/auth": "1.44.0", "google/auth": "1.44.0",
"imdbphp/imdbphp": "^8.0", "imdbphp/imdbphp": "^8.0",
"irazasyed/telegram-bot-sdk": "^3.11", "irazasyed/telegram-bot-sdk": "^3.11",
"laravel/framework": "^11.0", "laravel/framework": "^12.0",
"laravel/passport": "^12.0", "laravel/passport": "^12.0",
"laravel/sanctum": "^4.0", "laravel/sanctum": "^4.0",
"laravel/tinker": "^2.5", "laravel/tinker": "^2.5",
@@ -55,15 +55,13 @@
"stichoza/google-translate-php": "^5.2" "stichoza/google-translate-php": "^5.2"
}, },
"require-dev": { "require-dev": {
"crowdin/crowdin-api-client": "^1.18", "fakerphp/faker": "^1.23",
"fakerphp/faker": "^1.9.1",
"kitloong/laravel-migrations-generator": "^7.0", "kitloong/laravel-migrations-generator": "^7.0",
"laravel-lang/lang": "^15.10", "laravel-lang/lang": "^15.10",
"laravel-lang/publisher": "^16.0", "laravel-lang/publisher": "^16.0",
"mockery/mockery": "^1.4.2", "mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.1", "nunomaduro/collision": "^8.6",
"phpunit/phpunit": "^10.0", "phpunit/phpunit": "^11.0"
"spatie/laravel-ignition": "^2.0"
}, },
"autoload-dev": { "autoload-dev": {
"psr-4": { "psr-4": {
Generated
+1023 -1408
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1327,7 +1327,7 @@ function get_snatch_info($torrentId, $userId)
/** /**
* 完整的 Laravel 事件, 在 php 端有监听者的需要触发. 同样会执行 publish_model_event() * 完整的 Laravel 事件, 在 php 端有监听者的需要触发. 同样会执行 publish_model_event()
*/ */
function fire_event(string $name, \Illuminate\Database\Eloquent\Model $model, \Illuminate\Database\Eloquent\Model $oldModel = null): void function fire_event(string $name, \Illuminate\Database\Eloquent\Model $model, ?\Illuminate\Database\Eloquent\Model $oldModel = null): void
{ {
if (!isset(\App\Enums\ModelEventEnum::$eventMaps[$name])) { if (!isset(\App\Enums\ModelEventEnum::$eventMaps[$name])) {
throw new \InvalidArgumentException("Event $name is not a valid event enumeration"); throw new \InvalidArgumentException("Event $name is not a valid event enumeration");
+4
View File
@@ -128,6 +128,7 @@ return array (
'login_secret_lifetime' => '10', 'login_secret_lifetime' => '10',
'login_secret_deadline' => '2021-02-03 18:55:46', 'login_secret_deadline' => '2021-02-03 18:55:46',
'login_secret' => '8e19c6a796602bda113fb2f5bc9da2b0', 'login_secret' => '8e19c6a796602bda113fb2f5bc9da2b0',
'use_challenge_response_authentication' =>'yes',
), ),
'authority' => 'authority' =>
array ( array (
@@ -454,4 +455,7 @@ return array (
'is_invite_pre_email_and_username' => 'No', 'is_invite_pre_email_and_username' => 'No',
'access_admin_class_min' => User::CLASS_ADMINISTRATOR, 'access_admin_class_min' => User::CLASS_ADMINISTRATOR,
], ],
'permission' => [
'user_token_allowed' => \App\Repositories\TokenRepository::listUserTokenPermissions(false),
],
); );
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
function i({state:a,splitKeys:n}){return{newTag:"",state:a,createTag:function(){if(this.newTag=this.newTag.trim(),this.newTag!==""){if(this.state.includes(this.newTag)){this.newTag="";return}this.state.push(this.newTag),this.newTag=""}},deleteTag:function(t){this.state=this.state.filter(e=>e!==t)},reorderTags:function(t){let e=this.state.splice(t.oldIndex,1)[0];this.state.splice(t.newIndex,0,e),this.state=[...this.state]},input:{["x-on:blur"]:"createTag()",["x-model"]:"newTag",["x-on:keydown"](t){["Enter",...n].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.createTag())},["x-on:paste"](){this.$nextTick(()=>{if(n.length===0){this.createTag();return}let t=n.map(e=>e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")).join("|");this.newTag.split(new RegExp(t,"g")).forEach(e=>{this.newTag=e,this.createTag()})})}}}}export{i as default}; function i({state:a,splitKeys:n}){return{newTag:"",state:a,createTag:function(){if(this.newTag=this.newTag.trim(),this.newTag!==""){if(this.state.includes(this.newTag)){this.newTag="";return}this.state.push(this.newTag),this.newTag=""}},deleteTag:function(t){this.state=this.state.filter(e=>e!==t)},reorderTags:function(t){let e=this.state.splice(t.oldIndex,1)[0];this.state.splice(t.newIndex,0,e),this.state=[...this.state]},input:{"x-on:blur":"createTag()","x-model":"newTag","x-on:keydown"(t){["Enter",...n].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.createTag())},"x-on:paste"(){this.$nextTick(()=>{if(n.length===0){this.createTag();return}let t=n.map(e=>e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")).join("|");this.newTag.split(new RegExp(t,"g")).forEach(e=>{this.newTag=e,this.createTag()})})}}}}export{i as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long