Home  >  Article  >  Backend Development  >  Laravel Blog

Laravel Blog

WBOY
WBOYOriginal
2016-06-23 13:23:03780browse

  • 建立articlesController

$article = Article::findorfail($id);

推荐的调试方法:

dd($article);  //die and dump_var

.env中可以将APP_DEBUG改为false,然后判断显示abort('404');

  • 三种链接方法:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn