欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

dingo api 在 .env 中的配置

API_STANDARDS_TREE=vnd 
API_SUBTYPE=myapp 
API_PREFIX=api
API_VERSION=v1 
API_NAME=My API //这里不能有空格 如有空格 必须 用 "" 双引号括号来  否则访问网页 执行 php artisan 时会报错,报错见下面 
API_CONDITIONAL_REQUEST=false 
API_STRICT=false 
API_DEFAULT_FORMAT=json 
API_DEBUG=true 


PHP Fatal error:  Uncaught exception 'ReflectionException' with message 'Class l
og does not exist' in D:\xampputf8\htdocs\bigdata.youkuaitui.com\vendor\laravel\
framework\src\Illuminate\Container\Container.php:734
Stack trace:
#0 D:\xampputf8\htdocs\bigdata.youkuaitui.com\vendor\laravel\framework\src\Illum
inate\Container\Container.php(734): ReflectionClass->__construct('log')
#1 D:\xampputf8\htdocs\bigdata.youkuaitui.com\vendor\laravel\framework\src\Illum
inate\Container\Container.php(629): Illuminate\Container\Container->build('log',
 Array)
#2 D:\xampputf8\htdocs\bigdata.youkuaitui.com\vendor\laravel\framework\src\Illum
inate\Foundation\Application.php(697): Illuminate\Container\Container->make('log
', Array)
#3 D:\xampputf8\htdocs\bigdata.youkuaitui.com\vendor\laravel\framework\src\Illum
inate\Container\Container.php(849): Illuminate\Foundation\Application->make('Psr
\\Log\\LoggerI...')
#4 D:\xampputf8\htdocs\bigdata.youkuaitui.com\vendor\laravel\framework\src\Illum
inate\Container\Container.php(804): Illuminate\Container\Container in D:\xampput
f8\htdocs\bigdata.youkuaitui.com\vendor\laravel\framework\src\Illuminate\Contain
er\Container.php on line 734
 
Fatal error: Uncaught exception 'ReflectionException' with message 'Class log do
es not exist' in D:\xampputf8\htdocs\bigdata.youkuaitui.com\vendor\laravel\frame
work\src\Illuminate\Container\Container.php:734
Stack trace:
#0 D:\xampputf8\htdocs\bigdata.youkuaitui.com\vendor\laravel\framework\src\Illum
inate\Container\Container.php(734): ReflectionClass->__construct('log')
#1 D:\xampputf8\htdocs\bigdata.youkuaitui.com\vendor\laravel\framework\src\Illum
inate\Container\Container.php(629): Illuminate\Container\Container->build('log',
 Array)
#2 D:\xampputf8\htdocs\bigdata.youkuaitui.com\vendor\laravel\framework\src\Illum
inate\Foundation\Application.php(697): Illuminate\Container\Container->make('log
', Array)
#3 D:\xampputf8\htdocs\bigdata.youkuaitui.com\vendor\laravel\framework\src\Illum
inate\Container\Container.php(849): Illuminate\Foundation\Application->make('Psr
\\Log\\LoggerI...')
#4 D:\xampputf8\htdocs\bigdata.youkuaitui.com\vendor\laravel\framework\src\Illum
inate\Container\Container.php(804): Illuminate\Container\Container in D:\xampput
f8\htdocs\bigdata.youkuaitui.com\vendor\laravel\framework\src\Illuminate\Contain
er\Container.php on line 734
 
普通分类: