1. 加密出现错误

来源:转载



```php
use Illuminate/Support/Facades/Crypt;
public function add(){ returnCrypt::encrypt('king');
}
```
```
RuntimeException in Facade.php line 234:
A facade root has not been set.
```
解决方法:
boostrap/app.php 下面启用门面
```
// $app->withFacades();
改为
$app->withFacades();
```

分享给朋友:
您可能感兴趣的文章:
随机阅读: