宝塔安装,后续 php56 artisan migrate 报错
<p>第一次试用,我想在自己的服务器上测试下 Modstart,依照 <ahref="https://modstart.com/doc/install/baota.html#%E5%AE%9D%E5%A1%94%E4%B8%89%E6%AD%A5%E5%AE%89%E8%A3%85">https://modstart.com/doc/install/baota.html</a> 成功安装后,之后打算按照 <ahref="https://modstart.com/doc/tutorial/app.html">https://modstart.com/doc/tutorial/app.html</a> 尝试开发,SSH 登陆后:</p><pre class="brush:bash;toolbar:false">php56 artisan make:migration create_blog_table</pre>
<p>生成并编辑迁移文件</p>
<pre class="brush:php;toolbar:false"><?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
class CreateBlogTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::create('blog', function (Blueprint $table) {
$table->increments('id');
$table->timestamp();
$table->string('title', 200)->nullable()->comment('标题');
$table->string('cover', 200)->nullable()->comment('封面');
$table->string('summary', 200)->nullable()->comment('摘要');
$table->text('content')->nullable()->comment('内容');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}</pre>
<p>但是尝试创建 table 时报错了:</p>
<pre class="brush:bash;toolbar:false"># php56 artisan migrate
PHP Fatal error: Class 'Illuminate\Foundation\Application' not found in /www/wwwroot/modstart.xuchunyang.cn/bootstrap/app.php on line 14
Fatal error: Class 'Illuminate\Foundation\Application' not found in /www/wwwroot/modstart.xuchunyang.cn/bootstrap/app.php on line 14</pre>
<p><br></p>
页:
[1]