laravel 5.1 middleware cannot be called in controller
習慣沉默
習慣沉默 2017-05-16 16:55:20
0
1
517
  1. Create middleware

  2. $routeMiddleware is added in the Kernel class

According to the examples in the document, the first method is to add middleware in the route and it can be executed. The second method is to report an error that the class does not exist in the controller. I am new to laravel, please give me some advice.

ReflectionException in Container.php line 736:
Class Old does not exist

習慣沉默
習慣沉默

reply all(1)
曾经蜡笔没有小新

Solved the case problem and made it case-sensitive

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!