Sindbad~EG File Manager

Current Path : /home/numerotech/public_html/livemt2023.aios-scientificcommittee.org/app/models/
Upload File :
Current File : //home/numerotech/public_html/livemt2023.aios-scientificcommittee.org/app/models/Roles.php

<?php


class Roles extends Eloquent 
{

	protected $primaryKey = 'role_id';
	
	protected $table = 'roles';

	public Static function GetRoles()
    {
        try
        {         
        	
        	$roles = Roles::where('role_type','others')->orderBy('order_no')->lists('role','role_id');            
       	 	return $roles;

        } catch (Exception $e)
        {
            Log::error('Models: Roles  -> GetRoles '.$e->getMessage());
            return [];
        }
    }

    public Static function GetRolesIds()
    {
        try
        {         
            
            $roles = Roles::where('role_type','others')->orderBy('order_no')->lists('role_id');            
            return $roles;

        } catch (Exception $e)
        {
            Log::error('Models: Roles  -> GetRolesIds '.$e->getMessage()); 
            return [];
        }
    }

	
	
}


Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists