xiaonu

151 经验值

1.

http://localhost/sjx/public/articles/1

//Route::get('/articles','ArticlesController@index');
//Route::get('/articles/{$id}','ArticlesController@show');

按照课程上讲的就是show 方法报错

Sorry, the page you are looking for could not be found.
Route::resource('articles', 'ArticlesController');

这样请求就没问题
但是改成这种方法后就好使了,是忘记添加什么引用了么

2.请问一下如何去掉public目录哈直接显示成

localhost/sjx/articles/1

这种形式

还不错了,500一年很便宜,嘿嘿,学会了一天就可以赚个500