1.今天学习使用form的组件,首先使用composer命令来引入:
composer require illuminate/html
接着在blog/config/app.php中的两个地方添加内容:
Illuminate\Html\HtmlServiceProvider::class,
‘Form‘ => Illuminate\Html\FormFacade::class,
(这里有详细描述:https://laravist.com/article/14)
接着正常访问,我就报错了,事实上在这之前我已经吧blog/storage的权限已经777了
ErrorException in Filesystem.php line 81:
file_put_contents(/www/html/laravel/html/blog/bootstrap/cache/services.json): failed to open stream: Permission denied
chmod -R 777 bootstrap/cache/
地址:http://stackoverflow.com/questions/23540083/failed-to-open-stream-permission-denied-error-laravel
时间: 2024-10-13 23:30:09