update lock clucknut
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 14s
Build, Push and Deploy / build-and-push (push) Successful in 3m14s
Build, Push and Deploy / deploy-staging (push) Successful in 25s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-18 20:32:18 +07:00
parent 4554035227
commit dcaf267458
3359 changed files with 153185 additions and 205489 deletions

View File

@@ -47,4 +47,17 @@
'App\Nova',
],
/*
|--------------------------------------------------------------------------
| Project Trust Mode
|--------------------------------------------------------------------------
|
| PsySH restricts local project features unless your project is trusted.
| Set this to "always" to avoid untrusted project warnings in Tinker.
| Accepted values: "prompt", "always", "never", true, false, null.
|
*/
'trust_project' => env('TINKER_TRUST_PROJECT', 'always'),
];

View File

@@ -48,6 +48,9 @@ public function handle()
$config = Configuration::fromInput($this->input);
$config->setUpdateCheck(Checker::NEVER);
$appConfig = $this->getLaravel()->make('config');
$config->setTrustProject($appConfig->get('tinker.trust_project'));
$config->getPresenter()->addCasters(
$this->getCasters()
);
@@ -64,10 +67,8 @@ public function handle()
$path .= '/composer/autoload_classmap.php';
$config = $this->getLaravel()->make('config');
$loader = ClassAliasAutoloader::register(
$shell, $path, $config->get('tinker.alias', []), $config->get('tinker.dont_alias', [])
$shell, $path, $appConfig->get('tinker.alias', []), $appConfig->get('tinker.dont_alias', [])
);
if ($code = $this->option('execute')) {