Laravel-方法link_to_route不存在 [英] Laravel - Method link_to_route does not exist
本文介绍了Laravel-方法link_to_route不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用HTML :: link_to_route时出现错误,但当我使用HTML :: Link时却没有 为什么?
I get an error when i use HTML::link_to_route, but not when i use HTML::Link Why?
{{ HTML::decode(HTML::link_to_route('homepage', '<div class="logo"></div>')) }}
相同之处:
{{ HTML::link_to_route('about', 'WHAT IS IT') }}
错误:
BadMethodCallException
Method link_to_route does not exist.
版本4.0.x
推荐答案
修复了该问题,似乎文档确实过时了, 或那个laravel 4.0真的很新;)
Fixed it, it seems that the documentation is really out-dated, or that laravel 4.0 is just really new ;)
将"link_to_route"替换为"linkRoute".通过查看供应商文件找到了它.
replaced "link_to_route" with "linkRoute". Found it by looking into the vendor files.
这篇关于Laravel-方法link_to_route不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文