Updated now can select table name with '_' character

This commit is contained in:
Gregorio Chiko Putra 2017-10-30 11:10:13 +07:00
parent b527084d95
commit 7e86321332

View File

@ -22,6 +22,7 @@ class Api
public function get($table, $id = "", $args = [])
{
$get = [];
$table = str_replace('-', '_', $table);
$model = 'App\Models\ApiModel';
if ($table == 'pengumuman') {