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/State.php

<?php

class State extends Eloquent 
{
 	
	protected $table = 'states';
	protected $primaryKey = 'state_id';

	public Static function GetStates($country_id)
    {
        try
        {   
        	$states = State::where('is_visible',1)->where('country_id',$country_id)->get();            
       	 	return $states;

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

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