public static function coming_events($from = false)
    {
        $time = ($from ? strtotime($from) : mktime(0, 0, 0, date('m'), date('d'), date('Y')));
        $sql = "(StartDateTime >= '".date('Y-m-d', $time)." 00:00:00')";
        $events = PublicEvent::get()->where($sql);
        return $events;
    }
public static function coming_events($from = false)
    {
        $time = ($from ? strtotime($from) : mktime(0, 0, 0, date('m'), date('d'), date('Y')));
        $sql = "(StartDateTime >= '".date('Y-m-d', $time)." 00:00:00')";
        $events = PublicEvent::get()->where($sql);
        return $events;
    }
public static function coming_events ( $ from = false ) { $ time = ( $ from ? strtotime ( $ from ) : mktime ( 0 , 0 , 0 , date ( 'm' ) , date ( 'd' ) , date ( 'Y' ) ) ) ; $ sql = "(StartDateTime >= '" . date ( 'Y-m-d' , $ time ) . " 00:00:00')" ; $ events = PublicEvent :: get ( ) -> where ( $ sql ) ; return $ events ; }
Get all coming public events
Get all coming public events