|
...
|
...
|
@@ -264,9 +264,8 @@ class Base extends Model |
|
|
|
*/
|
|
|
|
public function filterRequestData(array $data, $table)
|
|
|
|
{
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($table, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
// 获取表的字段列表
|
|
|
|
$columns = Schema::getColumnListing($table);
|
|
|
|
$columns = Schema::getColumnListing('gl_news_category');
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($columns, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
// 过滤数据
|
|
|
|
return array_filter($data, function ($key) use ($columns) {
|
...
|
...
|
|