2017-02-22 30 views
0

我的腳本不會在視圖(file.blade.php)加載ckeditor.jsLaravel 5.4:Ckeditor.js在視圖不會加載(blade.php)

詳情:

我Laravel 5.4文件夾結構(部分)如下。

-example.com 
----Ckeditor 
-------ckeditor.js 
----Public //this is the document root of example.com 
----Resources 
-------Views 
----------file.blade.php 

我已經呼籲這樣demo.blade.php ckeditor.js ...

方法1:

<script src="{{url('Ckeditor/ckeditor.js')}}"></script> 

方法2:

<script src="http://example.com/Ckeditor/ckeditor.js"></script> 

No法在file.blade.php上加載ckeditor.js

我應該怎麼做?

+0

您能夠通過瀏覽器訪問JS文件?像︰http://example.com/Ckeditor/ckeditor.js – absiddiqueLive

回答