我最近升级了Laravel的项目从5.8.*到6.x版本。
现在,当我尝试运行命令composer dump-autoload -o时,会得到以下错误:
Declaration of App\Exceptions\Handler::renderHttpException(Symfony\Component\HttpKernel\Exception\HttpException $e)
should be compatible with Illuminate\Foundation\Exceptions\Handler::renderHttpException(Symfony\Componen
我正在尝试将laravel 5.8升级到6。我还删除了供应商目录,但仍收到以下错误: Fatal error: Uncaught RuntimeException: A facade root has not been set. in C:\xampp8.2.0\htdocs\web_kaalo - 5.8\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php:258 #0 C:\xampp8.2.0\htdocs\web_kaalo - 5.8\app\Exceptions\Handler.php(44): I
我在使用Laravel 6.0时遇到了问题。同样的源代码在Laravel 5.8上运行得很好。错误如下: 照明\数据库\查询异常SQLSTATE22018:将nvarchar值'XXXX‘转换为数据类型int时,MicrosoftSQL ServerConversion失败。(SQL: select * from business_units where business_units.code in (0,0,0,0)) 尝试使用5.8和6.0创建包含相同源代码的laravel项目,但结果是相同的,在5.8中运行良好,但在6.0中运行不佳。可能在Eloquent中有什么问题。 下面是
我尝试将添加到我的Laravel 9中,得到了错误:
$ composer require superbalist/laravel-google-cloud-storage
Using version ^2.2 for superbalist/laravel-google-cloud-storage
./composer.json has been updated
Running composer update superbalist/laravel-google-cloud-storage
Loading composer repositories with package info
这里有一个帖子列表,声称他们有相同的错误,我已经看过并尝试了其中的答案,但没有一个有效: Laravel 5.6 - Uncaught RuntimeException: A facade root has not been set 'A Facade root has not been set' when running composer install after a fresh checkout Laravel 5.5 application not booting anymore with "A facade root has not been set.
最近,我向.htaccess添加了一行AddHandler application/x-httpd-php71 .php71 .php来更改php版本: 7.1.13
我得到了这个错误:PHP Fatal error: Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale) in
我已经将我的laravel 5.8项目升级到了6.0。它已经成功升级,但是当我试图运行这个项目或者在我的项目中安装另一个包时,它在session.php中给出了名为"Call to undefined function str_slug()“的错误。我不知道为什么..。
Call to undefined function str_slug()
我对symfony有个问题:
致命错误:无法声明类App\Entity\UserGroup,因为这个名称已经在第17行的/var/www/app/src/Entity/UserGroup.php中使用)。
我清空了缓存并重新安装了包,但问题仍然存在。
全班:
<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine
正如我在问题中提到的,我刚刚将我项目的Laravel版本从5.8.*升级到6.0.*。
现在我得到了以下错误:
In AppServiceProvider.php line 32:
Call to undefined function App\Providers\studly_case()
Laravel应该在它自己的核心文件中抛出错误吗?当我得到这个错误时,我正在调用以下命令,所以我认为这发生在任何手工命令中:
php artisan list
我在docs中看到,新函数是来自Str::studly类文件的Str。可以在AppServiceProvider.php中改变吗?
我在Laravel版本8上安装gonoware/Laravel-map时遇到了问题。 当我在我的命令中执行"composer require errors/laravel-map“时,我得到了一些错误: Your requirements could not be resolved to an installable set of packages.
Problem 1
- gonoware/laravel-maps v1.3.0 requires illuminate/support ^5.5|^6.0|^7.0 -> found illuminate/sup
我已经将我的网站从Laravel5.8迁移到了Laravel6,在编写器更新了之后,我在网站上出现了这个错误,并且只使用命令php :
PHP Fatal error: Uncaught RuntimeException: A facade root has not been set. in /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:242
Stack trace:
#0 /var/www/html/app/Exceptions/Handler.php(48): Illum
在升级我的家园和安装我的软件包后,我遇到了一个奇怪的错误。在调用php artisan时,给出了以下输出:
In LoadConfiguration.php line 68:
Unable to load the "app" configuration file.
一些人认为这是导致 (10)大写文件名的原因。但是,这不能在我的文件夹中看到,也不适用于我的Ubuntu (18.04)环境。
查看LoadConfiguration.php的源代码,我们可以看到它使用的是来自symfony/finder组件的Finder类。
foreach (Finder::create()-&