我正在遵循以下教程
http://www.gufran.me/post/laravel-illuminate-router-package-in-your-application/
我的composer.json看起来像这样
{
"name": "superior/siginin",
"description": "Sign In Example",
"authors": [
{
"name": "A G",
"email": "ag@gmail.com"
}
],
"require": {
"illuminate/routing":"*",
"illuminate/events":"*"
}
}
我的index.php看起来像这样..
<?php
/**
* User: ag
* Date: 2/27/17
* Time: 10:08 AM
*/
require 'vendor/autoload.php';
require 'vendor/illuminate/support/helpers.php';
$basePath = str_finish(dirname(__FILE__), '/');
$controllersDirectory = $basePath . 'Controllers';
$modelsDirectory = $basePath . 'Models';
// register the autoloader and add directories
Illuminate\Support\ClassLoader::register();
Illuminate\Support\ClassLoader::addDirectories(array($controllersDirectory, $modelsDirectory));
对于某些奇怪的原因Illuminate\Support\ClassLoader
未加载到我的页面
有没有人知道为什么会这样。它添加的Illuminate \ Routing版本为v5.4.13
根据api。它应该在那里。