![](/img/trans.png)
[英]How to use variables instead of column names for running new Migrations directly in the Controller
我正在使用 Laravel 8,如果product_attr_info_correction列名的返回結果中不存在屬性名稱,我想運行插入兩個新列的代碼。 現在它工作正常且干凈,除了返回此錯誤的數據庫列創建部分: SQLSTATE [42000]:語法錯誤或訪問沖突:1166 列名不正確''( ...