Files
admin-php-module/models/ClientsGroup.php
miroman-afk fb46c8e739 v.2.27
Fixed reports
2023-05-02 15:21:54 +03:00

19 lines
385 B
PHP

<?php
namespace App\Component\Models;
use Illuminate\Database\Eloquent\Model;
class ClientsGroup extends Model {
protected $table = 'client_groups';
public static function getID($guid) {
$id = ClientsGroup::where('code', $guid)->first();
if (isset($id)) {
$id = $id['id'];
} else {
$id = 0;
}
return $id;
}
}