young2

2399 经验值

版本laravel5.5

问题:使用sendcloud发信成功,打开收件箱,链接的地址变成了长地址,不是自己的域名。
描述

修改composer.json里的name, vender名字(即前缀)改一个不容易跟别人重复的

是不是把`php
\Young\Hasher\MD5HasherProvider::class,

写成了

\Young\Hasher\MD5Hasher::class,

安装了valet可以正常使用,但是我原来mac上的nginx配置不生效了,这个怎么处理。

☁  ~  ps -ef|grep nginx
    0  9357     1   0 10:25上午 ??         0:00.01 nginx: master process /usr/local/opt/nginx/bin/nginx -g daemon off;
  501  9358  9357   0 10:25上午 ??         0:00.00 nginx: worker process
  501  9359  9357   0 10:25上午 ??         0:00.00 nginx: worker process
  501  9360  9357   0 10:25上午 ??         0:00.00 nginx: worker process
  501  9361  9357   0 10:25上午 ??         0:00.00 nginx: worker process
  501  9374  5937   0 10:25上午 ttys003    0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn nginx

[2017-08-14 15:21:03] local.ERROR: ReflectionException: Class Barryvdh\Cors\HandleCors does not exist in /Users/young/code/vue-laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:749
Stack trace:

0 /Users/young/code/vue-laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(749): ReflectionClass->__construct('Barryvdh\\Cors\\H...')

1 /Users/young/code/vue-laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(644): Illuminate\Container\Container->build('Barryvdh\\Cors\\H...', Array)

2 /Users/young/code/vue-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\Container\Container->make('Barryvdh\\Cors\\H...', Array)

3 /Users/young/code/vue-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(174): Illuminate\Foundation\Application->make('Barryvdh\\Cors\\H...')

4 /Users/young/code/vue-laravel/public/index.php(58): Illuminate\Foundation\Http\Kernel->terminate(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response))

5 /Users/young/code/vue-laravel/server.php(21): require_once('/Users/young/co...')

6 {main}

☁ mylaravel [master] ⚡ composer require barryvdh/laravel-cors
Using version ^0.9.2 for barryvdh/laravel-cors
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files

Illuminate\Foundation\ComposerScripts::postUpdate
php artisan optimize

Generating optimized class loader
The compiled services file has been removed.

重新安装了一遍,然后google了一下午都没找到解决方案

有人遇见这个问题么?
ReflectionException in Container.php line 681:
Class Barryvdh\Cors\Middleware\HandleCors does not exist

vue模板只能有一个根对象,在模板的2个元素外边套个div就行了