Updated now can select table name with '_' character
This commit is contained in:
parent
b527084d95
commit
7e86321332
@ -22,6 +22,7 @@ class Api
|
||||
public function get($table, $id = "", $args = [])
|
||||
{
|
||||
$get = [];
|
||||
$table = str_replace('-', '_', $table);
|
||||
|
||||
$model = 'App\Models\ApiModel';
|
||||
if ($table == 'pengumuman') {
|
||||
|
Loading…
Reference in New Issue
Block a user