$table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade');class Article extends Model{protected $fillable = ['titile', 'content'];public function user(){retur...
관계
38LARAVEL on 20-03-29