get(); if($newList->isNotEmpty()){ echo "yz_options 已经有数据了跳过\n"; return ; } \Illuminate\Support\Facades\DB::table('yz_options')->insert(array ( 0 => array ( 'id' => 1, 'option_name' => 'example-plugin', 'option_value' => 'true', ), 1 => array ( 'id' => 2, 'option_name' => 'plugins_enabled', 'option_value' => '["example-plugin"]', ), )); } }