Patrick Peng
Patrick Peng
app/Http/Controllers/Admin/ArticleController.php index 方法不存在。让我们新增 index 方法: public function index() { return view('admin/article/index')->withArticles(Article::all()); } 这里的index方法是加在app/Http/Controllers/Admin/ArticleController.php 对吧? 这里还是会报错,用的5.6. InvalidArgumentException View [admin.article.index] not found.
1./Users/patrick/Desktop/develop/SwiftStudy/SwiftStudy/CustomVC/CostomNavigationVC.swift:79:65: Downcast from 'UIViewController?' to 'UIViewController' only unwraps optionals; did you mean to use '!'? 2./Users/patrick/Desktop/develop/SwiftStudy/SwiftStudy/CustomVC/CostomNavigationVC.swift:91:65: Downcast from 'UIViewController?' to 'UIViewController' only unwraps optionals; did you mean to use '!'?
我分别修改为 let vc:UIViewController = self.viewControllers.last! let button:UIButton! = UIButton(type: UIButtonType.Custom) 也可以了