简体   繁体   English

如何在刀片模板中使用laravel Crypter类

[英]How to use laravel Crypter class in blade template

我使用laravel文档中的代码,但我收到此错误“未找到类'Crypter'”我在app.php中设置了32个字符

Crypter::encrypt('I actually like Hello Kitty');

看起来你使用了错误的类名,请尝试:

Crypt::encrypt('I actually like Hello Kitty');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Laravel5 - 如何在 Blade 中仅呈现 html 标签而不是 javascript? - Laravel5 - How to render only html tags not javascript in Blade? 将Laravel护照access_token从Laravel刀片服务器传递到React组件的最安全方法 - Most secure way to pass Laravel passport access_token from Laravel blade to React component 如何从security-context.xml获取bean属性并在java类中使用它们? - How to get bean properties from security-context.xml and use them in java class? Laravel 4:如何保护资产文件夹? - Laravel 4: how to protect assets folder? 如何创建 laravel 散列密码 - How to create a laravel hashed password 默认Internet应用程序模板的安全性如何 - How secure is the default Internet Application Template 使用globals()创建类实例 - Use of globals() for creating class instances MVC2 ::我如何*使用*自定义IIdentity类? - MVC2 :: How do I *USE* a Custom IIdentity Class? 我们如何使用DirectorySecurity类获得对目录的写访问权限? - How we can use DirectorySecurity class for getting write access to a directory? 如何使用StringEscapeUtils类保护代码免受LDAP注入漏洞的影响? - How can I use the StringEscapeUtils Class to secure the code from LDAP injection vulnerabilities?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM