我在这样的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文件.
为什么会这样?
我正在使用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)