Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

laravel9 发布语言文件 #5546

Merged
merged 2 commits into from
Mar 22, 2022
Merged

laravel9 发布语言文件 #5546

merged 2 commits into from
Mar 22, 2022

Conversation

laradocs
Copy link
Contributor

No description provided.

@@ -115,7 +115,11 @@ protected function registerPublishing()
{
if ($this->app->runningInConsole()) {
$this->publishes([__DIR__.'/../config' => config_path()], 'laravel-admin-config');
$this->publishes([__DIR__.'/../resources/lang' => resource_path('lang')], 'laravel-admin-lang');
if (substr($this->app->version(), 0, 1) >= 9) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

判断语义化版本号,推荐使用 version_compare 函数 https://www.php.net/manual/en/function.version-compare.php

@jxlwqq jxlwqq merged commit 5b2e19c into z-song:master Mar 22, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants