Call to undefined method Illuminate\\Routing\\Route::get()

旧时模样 提交于 2019-11-30 09:03:32

This import is wrong:

use Illuminate\Routing\Route;

You actually don't have to import any class as Laravel registers a global alias Route.

If you want to import the right class, that would be:

use Illuminate\Support\Facades\Route;
Anis Zaman

comment this:

// use Symfony\Component\Routing\Route; 

use this:

use Illuminate\Support\Facades\Route; 
user6238341

Laravel VERSION = '5.2.30' using zendserver enterprise

On C:\Program Files (x86)\Zend\ZendServer\data\plugins\laravel\zray\ZRay.php from zend server, change line 193

From

if (get_class($route) != 'Illuminate\Routing\Route') {

To

if (get_class($route) != 'Illuminate\Support\Facades\Route') {   
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!