app/User.php
/*
     * Method to check if user is active
     * */
Method to check if user is active
Method to check if user is active
public function isActive(){
        if($this->activeStatus->name == "active"){
            return true;
        }
            return false;
    }
public function isActive ( ) { if ( $ this -> activeStatus -> name == " active " ) { return true ; } return false ; }
Method to check if user is active
Method to check if user is active
//echo "You are active"; //echo "You are not active";