Laravel 找不到可发布的资源

Laravel 找不到可发布的资源,laravel,laravel-websockets,Laravel,Laravel Websockets,我已尝试使用发布此包 php artisan vendor:publish --provider="BeyondCode\LaravelWebSockets\WebSocketsServiceProvider" --tag="migrations" 但是我越来越 Unable to locate publishable resources publishing complete 我不知道问题的原因是什么。任何能帮助我的人 安装输出 Installing beyondcode/laravel

我已尝试使用发布此包

php artisan vendor:publish --provider="BeyondCode\LaravelWebSockets\WebSocketsServiceProvider" --tag="migrations"
但是我越来越

Unable to locate publishable resources

publishing complete
我不知道问题的原因是什么。任何能帮助我的人

安装输出

Installing beyondcode/laravel-websockets (1.4.0): Downloading (100%)
symfony/polyfill-intl-idn suggests installing ext-intl (For best performance)
symfony/psr-http-message-bridge suggests installing nyholm/psr7 (For a super lightweight PSR-7/17 implementation)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
symfony/event-dispatcher suggests installing symfony/dependency-injection
symfony/var-dumper suggests installing ext-intl (To show region name in time zone dump)
symfony/http-kernel suggests installing symfony/browser-kit
symfony/http-kernel suggests installing symfony/config
symfony/http-kernel suggests installing symfony/dependency-injection
react/event-loop suggests installing ext-event (~1.0 for ExtEventLoop)
react/event-loop suggests installing ext-pcntl (For signal handling support when using the StreamSelectLoop)
react/event-loop suggests installing ext-uv (* for ExtUvLoop)
paragonie/sodium_compat suggests installing ext-libsodium (PHP < 7.0: Better performance, password hashing (Argon2i), secure memory management (memzero), and better security.)
paragonie/sodium_compat suggests installing ext-sodium (PHP >= 7.0: Better performance, password hashing (Argon2i), secure memory management (memzero), and better security.)
voku/portable-ascii suggests installing ext-intl (Use Intl for transliterator_transliterate() support)
symfony/translation suggests installing symfony/config
symfony/translation suggests installing symfony/yaml
illuminate/support suggests installing moontoast/math (Required to use ordered UUIDs (^1.1).)
illuminate/support suggests installing ramsey/uuid (Required to use Str::uuid() (^3.7).)
illuminate/support suggests installing vlucas/phpdotenv (Required to use the Env class and env helper (^4.0).)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/yaml (For using the YAML loader)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
illuminate/filesystem suggests installing league/flysystem (Required to use the Flysystem local and FTP drivers (^1.0).)
illuminate/filesystem suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (^1.0).)
illuminate/filesystem suggests installing league/flysystem-cached-adapter (Required to use the Flysystem cache (^1.0).)
illuminate/filesystem suggests installing league/flysystem-sftp (Required to use the Flysystem SFTP driver (^1.0).)
illuminate/http suggests installing guzzlehttp/guzzle (Required to use the HTTP Client (^6.3.1|^7.0).)
illuminate/routing suggests installing nyholm/psr7 (Required to use PSR-7 bridging features (^1.2).)
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/lock
illuminate/console suggests installing dragonmantank/cron-expression (Required to use scheduler (^2.0).)
illuminate/console suggests installing guzzlehttp/guzzle (Required to use the ping methods on schedules (^6.3.1|^7.0).)
illuminate/database suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (^2.6).)
illuminate/database suggests installing fzaninotto/faker (Required to use the eloquent factory builder (^1.4).)
illuminate/database suggests installing illuminate/events (Required to use the observers with Eloquent (^7.0).)
illuminate/database suggests installing illuminate/pagination (Required to paginate the result set (^7.0).)
illuminate/queue suggests installing ext-pcntl (Required to use all features of the queue worker.)
illuminate/queue suggests installing ext-posix (Required to use all features of the queue worker.)
illuminate/queue suggests installing aws/aws-sdk-php (Required to use the SQS queue driver and DynamoDb failed job storage (^3.0).)
illuminate/queue suggests installing illuminate/redis (Required to use the Redis queue driver (^7.0).)
illuminate/queue suggests installing pda/pheanstalk (Required to use the Beanstalk queue driver (^4.0).)
guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
Writing lock file
Generating autoload files
安装beyondcode/laravel websockets(1.4.0):下载(100%)
symfony/polyfill intl idn建议安装ext intl(以获得最佳性能)
symfony/psr http消息桥建议安装nyholm/psr7(用于超轻量psr-7/17实现)
paragonie/random_compat建议安装ext-LibNade(提供一个现代加密API,可用于生成随机字节)
symfony/event dispatcher建议安装symfony/dependency injection
symfony/var转储程序建议安装ext intl(在时区转储中显示区域名称)
symfony/http内核建议安装symfony/browser工具包
symfony/http内核建议安装symfony/config
symfony/http内核建议安装symfony/dependency注入
react/event loop建议安装ext event(~1.0用于ExtEventLoop)
react/event loop建议安装ext pcntl(用于使用StreamSelectLoop时的信号处理支持)
反应/事件循环建议安装ext uv(*用于ExtUvLoop)
paragonie/Naudio_compat建议安装ext-LibNaude(PHP<7.0:更好的性能、密码哈希(Argon2i)、安全内存管理(memzero)和更好的安全性。)
paragonie/Naudio\u compat建议安装ext Naudio(PHP>=7.0:更好的性能、密码哈希(Argon2i)、安全内存管理(memzero)和更好的安全性。)
voku/portable ascii建议安装ext intl(使用intl实现音译器_transiterate()支持)
symfony/translation建议安装symfony/config
symfony/translation建议安装symfony/yaml
说明/支持建议安装moontoast/math(使用有序UUID(^1.1)时需要)
说明/支持建议安装ramsey/uuid(使用Str::uuid()(^3.7)时需要)
说明/支持建议安装vlucas/phpdotenv(使用Env类和Env辅助程序(^4.0)时需要)
symfony/routing建议安装symfony/config(用于使用一体式路由器或任何加载程序)
symfony/routing建议安装symfony/yaml(用于使用yaml加载器)
symfony/routing建议安装symfony/expression language(用于使用表达式匹配)
symfony/routing建议安装条令/注释(用于使用注释加载器)
说明/文件系统建议安装league/flysystem(需要使用flysystem本地和FTP驱动程序(^1.0))
说明/文件系统建议安装league/flysystem-aws-s3-v3(使用flysystem s3驱动程序(^1.0)时需要)
说明/文件系统建议安装league/flysystem缓存适配器(使用flysystem缓存(^1.0)需要此适配器)
说明/文件系统建议安装league/flysystem sftp(需要使用flysystem sftp驱动程序(^1.0))
Illumb/http建议安装guzzle http/guzzle(使用http客户端(^6.3.1 | ^7.0)时必须安装)
照明/布线建议安装nyholm/psr7(需要使用PSR-7桥接功能(^1.2))
symfony/服务合同建议安装symfony/服务实施
symfony/控制台建议安装symfony/锁
Illumb/console建议安装dragonmantank/cron表达式(使用计划程序(^2.0)时必需)
Illumb/console建议安装guzzle http/guzzle(在计划(^6.3.1 | ^7.0)中使用ping方法时需要此选项)
说明/数据库建议安装条令/dbal(重命名列和删除SQLite列(^2.6)需要此选项)
说明/数据库建议安装fzaninotto/faker(使用雄辩的factory builder(^1.4)需要)
Illumb/database建议安装Illumb/events(需要使用具有雄辩(^7.0)的观察者)
Illumb/database建议安装Illumb/pagination(对结果集(^7.0)进行分页时需要安装)
照明/队列建议安装ext pcntl(需要使用队列工作程序的所有功能。)
照明/队列建议安装ext posix(需要使用队列工作程序的所有功能。)
Illumb/queue建议安装aws/aws sdk php(使用SQS队列驱动程序和DynamoDb失败作业存储(^3.0)所需)
Illumb/queue建议安装Illumb/redis(使用redis队列驱动程序(^7.0)所需)
Illumb/queue建议安装pda/pheanstalk(使用Beanstalk队列驱动程序(^4.0)时需要)
guzzlehttp/psr7建议安装zendframework/zend httphandlerrunner(发出PSR-7响应)
写入锁定文件
生成自动加载文件

我也遇到了同样的问题,现在已经解决了,这里是它的外观

执行以下一组命令:

php artisan clear-compiled
composer dumpautoload
之后,我的
php artisan供应商:publish--provider=“Path\To\Class”
成功运行

请参阅下面的完整屏幕截图


很有帮助。

然后在本地安装composer
安装一个composer。

我通过运行composer update解决了这个问题。

这都是关于运行命令“php artisan vendor:publish--provider”,然后选择要发布的文件的编号。

我也面临同样的问题。因此,我必须关闭命令终端并重试。它起作用了。

我也遇到过同样的问题, 我尝试了所有的解决方案,但没有一个奏效

我只是忘记了第一次运行:
composer require laravel/sanctum

之后,我必须运行:
composer update

在那之后,我能够执行:
php artisan供应商:publish--provider=“Laravel\Sanctum\SanctumServiceProvider”
我也遇到了同样的问题。。但在我的例子中,我只是忘记了在
app.php

中注册包
ServiceProvider
,我在Docker容器中使用了Laravel,所以我创建了BASH脚本,从任何地方调用“php artisan”,而这个脚本只是去掉了双引号(“)从artisan命令。当在docker容器内手动运行时,它将按预期工作。

尝试
php artisan vendor:publish