v.2.27
Fixed reports
This commit is contained in:
@@ -6,4 +6,14 @@ 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user