0%

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:

git fetch upstream

# Make sure that you're on your master branch:

git checkout master

# Rewrite your master branch so that any commits of yours that
# aren't already in upstream/master are replayed on top of that
# other branch:

git rebase upstream/master

查看原文

  1. 在 composer.json 添加下面的配置
1
2
3
4
5
6
"repositories": [
{
"type": "path",
"url": "/full/or/relative/path/to/development/package"
}
]
  1. 执行 require 操作
1
composer require "vendorname/packagename @dev"

@dev 和包名中间的空格要有

查看原文

1
2
3
4
5
6
7
Schema::connection('')->table($tableName, function (Blueprint $table) {
$sm = Schema::getConnection()->getDoctrineSchemaManager();
$indexesFound = $sm->listTableIndexes('table');

if(array_key_exists("index_name", $indexesFound))
$table->dropUnique("index_name");
});

1
2
3
4
require __DIR__ . '/vendor/autoload.php';
$app = require_once __DIR__ . '/bootstrap/app.php';

config('any');
x

解决办法:

1
2
3
4
5
require __DIR__ . '/vendor/autoload.php';
$app = require_once __DIR__ . '/bootstrap/app.php';

(new \Illuminate\Foundation\Bootstrap\LoadConfiguration)->bootstrap($app);
config('any');

使用 (new \Illuminate\Foundation\Bootstrap\LoadConfiguration)->bootstrap($app); 加载配置

ServiceProvider 里面加上

1
app('view')->addLocation(module_path('Develop') . '/resources/views');