当我的站点登录失败时,在laravel.log文件中记录错误。我使用laravel护照进行api认证。
错误:
[2018-08-06 13:27:35] local.ERROR: League\OAuth2\Server\Exception\OAuthServerException: The user credentials were incorrect. in /home/roberto/new_site/vendor/league/oauth2-server/src/Exception/OAuthServerException.php:128
如何禁用oauth日志?
我已经在一台本地OSX机器上安装了Laravel,直到我尝试打开example.app:8000并得到以下错误之前,一切似乎都进行得很顺利:
Error in exception handler: The stream or file "/home/vagrant/Code/example/app/storage/logs/laravel.log" could not be opened: failed to open stream: Protocol error in /home/vagrant/Code/example/bootstrap/compiled.php:8671
我想要更新env文件中的数据库密码。我想要更新db_password变量。 在导航到/var/www/html之后,我正在尝试执行以下命令 php artisan env:set db_password=myPassWordHere 我得到了一个错误。 PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permiss
最近我建立了Laravel Forge,但我一直在部署方面遇到问题。它总是在部署过程中抛出错误--我已经将它们粘贴到下面。
我该如何解决这个问题呢?
U app/storage/logs/laravel.log
U vendor/autoload.php
U vendor/composer/autoload_classmap.php
U vendor/composer/autoload_real.php
Pull is not possible because you have unmerged files.
Please, fix them up in the work tr
我们有一个Laravel应用程序(版本4),我们正试图在AWS上部署。以前,它通过XAMPP托管在我们的本地服务器上。在AWS上,我在var/www/html目录路径中为laravel应用程序创建了一个文件夹。但是当我尝试访问时,我得到了错误消息:
Error in exception handler: The stream or file "/var/www/html/laravel_folder/app/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denie
我在Laravel 4上工作。在远程服务器上,我备份了旧的laravel.log,创建了一个新的,并通过删除新创建的一个来恢复旧的。从那时起,我得到了错误:
Error in exception handler: The stream or file "/var/www/stage/webapp/app/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/staging_html/webapp/vendor/monolog/mono
我在Laravel5.4中有一个项目,我为他们创建了新的自定义类和服务提供者。并将该类绑定到服务提供者register方法中的app。并在app.php配置中编写此提供程序。但是它不是在加载应用程序时加载的。我用自定义类Log Helper的__construct方法编写了laravel.log,但是日志没有在laravel.log文件中写入,其他操作在这个__construct方法中没有执行。下面是来自服务提供商的代码。
public function register()
{
App::bind('helper', function() {
retu
我使用Laravel V7 事件(正在运行) class IssueUpdated
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $issue;
public $oldIssue;
public $user;
public function __construct($issue, $oldIssue, $user)
{
$this->issue = $issue;
$this->oldIssue = $oldI
我开发了一个laravel应用程序,并使用WinSCP将其托管到我的私人服务器上。但是当我点击myurl的时候,它显示的是The stream or file "/var/www/html/vesMain/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied,如果我设置了APP_DEBUG=flase,那么它就是显示500 error``192.168.41.81 is currently unable to handle this request。但我看到
我无法用Log外观记录作业的句柄方法中的任何内容。使用此facade从控制器或应用程序的其他部分进行日志记录很好。
我在这里尝试过这样的解决方案:,但是它不适用于Laravel6.17,在这里:,但它不影响任何行为。
PHP7.2Laravel在Docker内部运行,带有高山图像和其他无关的
这是我的工作:
class MyJob implements ShouldQueue
{
use Dispatchable;
use InteractsWithQueue;
use Queueable;
use SerializesModels;
public f
我已经在基于的nginx上安装了laravel。当我运行我的服务器ip地址时,出现一个空白页面。这是nginx错误日志:
2016/09/15 12:40:59 [error] 2857#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/var/www/laravel/storage/logs/laravel.log
我在寻找自定义日志文件名的解决方案。我找到了一个在5.6版本项目中工作的解决方案。但在那之后,这意味着超过5.6,它是无效的。我尝试使用许多解决方案,但没有起作用。每次生成laravel.log的文件名。但我想要像laravel-{vendor_code}-{date}.log一样
我使用了解决方案,代码在下面。
CustomLogFile.php
<?php
namespace App\Logging;
use Illuminate\Http\Request;
use Monolog\Handler\RotatingFileHandler;
我安装了laravel,并将文件复制到同一台机器上的xampp托管文件夹中。然而,当我试图访问我的index.php文件时,我会得到以下错误:
Error in exception handler: The stream or file "/Applications/XAMPP/xamppfiles/htdocs/TestManagement/app/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /Applications/XAMPP/xamp
如何设置Laravel 4的存储目录权限。我有以下错误:
`Error in exception handler: The stream or file "/var/www/mysite/app/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/mysite/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:84`
我已经将-R存储目录设置为777。这
我试图为我的laravel应用程序编写一个自定义日志,因为应用程序相当大,所以我想组织我的日志文件。
问题是,如果在任何时候应用程序错误,它写到laravel.log文件并杀死脚本,就像php一样。
例如,我有一个自定义日志库,如下所示
<?php
namespace App\Libraries\Logs;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Log;
class CustomLogsLibrary {
public function userError($error){