简单的问题:我是Laravel的新手.我有这个迁移文件:
Schema::create('lists', function(Blueprint $table) {
$table->increments('id');
$table->string('title', 255);
$table->integer('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users');
$table->timestamps();
});
Run Code Online (Sandbox Code Playgroud)
我想更新它以添加onDelete('cascade').
最好的方法是什么?
在运行composer dump-autoload时,我收到错误错误
脚本@php artisan包:发现处理返回的自动加载转储事件,错误代码为255
我在更新项目中的依赖项时遇到问题.问题:
无法解码响应:zlib_decode():data error重试降级模式,请查看https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode了解更多信息