Php 将Sentinel与脚本集成

Php 将Sentinel与脚本集成,php,sentinel,Php,Sentinel,我正在尝试使用Cartalyst Sentinel来编写脚本。我已经从github下载了这些文件。(). 我已经把它放在我的wamp上了,我正在尝试按照这里的说明操作() 这就是我到目前为止所做的: <?php // Import the Sentinel Classes use sentinel\src\Native\Facades\Sentinel; use Illuminate\Database\Capsule\Manager as Capsule; require 'vend

我正在尝试使用Cartalyst Sentinel来编写脚本。我已经从github下载了这些文件。(). 我已经把它放在我的wamp上了,我正在尝试按照这里的说明操作()

这就是我到目前为止所做的:

<?php

// Import the Sentinel Classes

use sentinel\src\Native\Facades\Sentinel;
use Illuminate\Database\Capsule\Manager as Capsule;

require 'vendor/autoload.php';

$capsule = new Capsule;

$capsule->addConnection([
    'driver' => 'mysql',
    'host' => 'localhost',
    'database' => 'sentinel',
    'username' => '',
    'password' => 'secret',
    'charset' => 'utf8',
    'collation' => 'utf8_unicode_ci',
]);


$capsule->bootEloquent();

?> code here
所以我有点困惑,因为手册并没有真正提供解决问题的方法和我们需要的东西


任何帮助都将不胜感激

以后您似乎还没有更新数据库组件的实现

要使用它,请运行:

composer require illuminate/database illuminate/events symfony/http-foundation 
这将安装
illumb\Database\Capsule
希望能正常工作


我已经晚了4年才回答这个问题,但我相信这可能会帮助那些苦苦挣扎的人。

看来您以后还没有更新数据库组件的实现

要使用它,请运行:

composer require illuminate/database illuminate/events symfony/http-foundation 
这将安装
illumb\Database\Capsule
希望能正常工作

我迟了4年才回答这个问题,但我相信这可能会帮助那些挣扎的人