【发布时间】:2017-06-25 16:09:01
【问题描述】:
没有 php artisan serve 我不会启动我的 laravel 5.2 应用程序
当 index.php 在公用文件夹中时,它可以正常工作 IMAGE From Public Folder
当 index.php 在根文件夹中时,它会停止工作 Image From Root Folder
【问题讨论】:
标签: laravel file-manager
没有 php artisan serve 我不会启动我的 laravel 5.2 应用程序
当 index.php 在公用文件夹中时,它可以正常工作 IMAGE From Public Folder
当 index.php 在根文件夹中时,它会停止工作 Image From Root Folder
【问题讨论】:
标签: laravel file-manager
要包含你的 css、js 和资产,你必须使用 laravel 的asset()。
例如,您的文件位于 public/asset/css/custom.css 中
<link href="{!! asset('asset/css/custom.css') !!}" type="text/css" rel="stylesheet" />
在服务器中将公用文件夹从 public 替换为 public_html 时也可以使用。
【讨论】: