wanted to see how laravel encapsulated monolog, and then clicked on the code. Here comes the problem. Let"s take a look at it.
Controller Code
<?php
namespace Illuminate\Support\Facades;
use Mockery;
use RuntimeException;
use Mockery\MockInterface;
abstract class Facade
{
/**
* Handle dynamic, static calls to the object.
*
* @param string $method
* @param array $args
* @return mixed
*
* @throws \RuntimeException
*/
public static function __callStatic($method, $args)
{
$instance = static::getFacadeRoot();
dd($instance);
if (! $instance) {
throw new RuntimeException("A facade root has not been set.");
}
return $instance->$method(...$args);
}
}
although the code is terminated here, the log can still be generated, indicating that I didn"t go this way. At this time, I can"t find out what the problem is. Ask everyone. Thank you very much