This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Create a Symfony response for the given exception. | |
* | |
* @param \Exception $e | |
* @return mixed | |
*/ | |
protected function convertExceptionToResponse(Exception $e) | |
{ | |
if (config('app.debug')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//based on Wordpress Multiple Insert https://github.com/mirzazeyrek/wordpress-multiple-insert | |
function wp_insert_update_rows($row_arrays = array(), $wp_table_name) { | |
global $wpdb; | |
$wp_table_name = esc_sql($wp_table_name); | |
$update = ""; | |
$query = ""; | |
$query_columns = ""; | |
$query. = "INSERT INTO {$wp_table_name} ("; |