小编G. *_*cha的帖子

Laravel中的迁移未放在"database\migrations"文件夹中

我在这样的laravel进行迁移:

php artisan make:migration create_tasks_table
Run Code Online (Sandbox Code Playgroud)

然后我从控制台收到一条消息,如下所示:

Created Migration: 2017_04_03_002411_create_tasks_table
Run Code Online (Sandbox Code Playgroud)

但是当我进入'database\migrations'目录时,没有与我所做的迁移相关的.php文件.

为什么会这样?

php laravel composer-php

1
推荐指数
1
解决办法
123
查看次数

XMLWriter未在braintree中加载

我正在使用braintree接受我网站上的付款.但是当我尝试打开视图进行购买时,我收到此错误:

Braintree.php第20行中的例外:Braintree库需要xmlwriter扩展.

这是我的Braintree.php文件:

    <?php
/**
 * Braintree PHP Library
 * Creates class_aliases for old class names replaced by PSR-4 Namespaces
 *
 * @copyright  2015 Braintree, a division of PayPal, Inc.
 */

require_once(__DIR__ . DIRECTORY_SEPARATOR . 'autoload.php');

if (version_compare(PHP_VERSION, '5.4.0', '<')) {
    throw new Braintree_Exception('PHP version >= 5.4.0 required');
}


function requireDependencies() {
    $requiredExtensions = ['xmlwriter', 'openssl', 'dom', 'hash', 'curl'];
    foreach ($requiredExtensions AS $ext) {
        if (!extension_loaded($ext)) {
            throw new Braintree_Exception('The Braintree library requires the ' . $ext . ' extension.'); …
Run Code Online (Sandbox Code Playgroud)

php payment xmlwriter braintree lumen

0
推荐指数
1
解决办法
705
查看次数

标签 统计

php ×2

braintree ×1

composer-php ×1

laravel ×1

lumen ×1

payment ×1

xmlwriter ×1